Skip to content

Commit

Permalink
Try a fix for #38
Browse files Browse the repository at this point in the history
  • Loading branch information
jimboca committed Dec 10, 2023
1 parent 0007053 commit d7bc01f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nodes/Hub.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def check_client(self):
else:
if self.client is None:
LOGGER.info("Client was stopped. client{0}".format(self.client))
self._set_st(1)
self._set_st(0)
else:
# Then client_status will be True when client is ready
if self.client_status is True:
Expand Down Expand Up @@ -216,6 +216,7 @@ def check_client(self):
# If we had a connection issue previously, try to fix it.
if self.st == 0:
LOGGER.debug("Calling get_client st=%d" % (self.st))
self._close_client()
if not self.get_client():
return False
self._set_st(1)
Expand Down

0 comments on commit d7bc01f

Please sign in to comment.