Skip to content
Snippets Groups Projects
Commit 4ed6bd8a authored by Antoine Millet's avatar Antoine Millet
Browse files

Added __nonzero__ method on RpcConnection class.

parent e377978d
No related branches found
No related tags found
No related merge requests found
......@@ -100,6 +100,9 @@ class RpcConnection(object):
def __hash__(self):
return self._sock.__hash__()
def __nonzero__(self):
return self._connected
def run(self):
'''
Inbound message processing loop.
......
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