Skip to content

Commit

Permalink
Fix ping
Browse files Browse the repository at this point in the history
  • Loading branch information
themylogin committed Jul 10, 2024
1 parent a935df2 commit 5ab9fac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions truenas_api_client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -531,8 +531,8 @@ def unsubscribe(self, id_):
self._event_callbacks.pop(k)

def ping(self, timeout=10):
c = self.call('core.ping', background=True)
return c.wait(timeout)
c = self.call('core.ping', background=True, register_call=True)
return self.wait(c, timeout=timeout)

def close(self):
self._ws.close()
Expand Down

0 comments on commit 5ab9fac

Please sign in to comment.