Commit 4ed6bd8a authored by Antoine Millet's avatar Antoine Millet

Added __nonzero__ method on RpcConnection class.

parent e377978d
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment