Skip to content
Snippets Groups Projects
Commit 2aadc44e authored by Piotr Maślanka's avatar Piotr Maślanka
Browse files

Fixed #7

parent 11dc12e5
No related branches found
No related tags found
No related merge requests found
......@@ -140,7 +140,7 @@ class Connection(object):
(self.node_definition.host, self.node_definition.port))
except socket.error as e:
time.sleep(0.5) # Connection refused? Very bad things?
if monotonic.monotonic() - start_at < timeout:
if monotonic.monotonic() - start_at > timeout:
raise ConnectionDead()
else:
break
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment