Commit 5b181038 authored by Vincent Pelletier's avatar Vincent Pelletier

Strengthen sanity assertion on Node.setConnection .

parent fb414357
......@@ -104,7 +104,7 @@ class Node(object):
"""
Define the connection that is currently available to this node.
"""
assert connection is not None
assert not connection.isClosed(), connection
assert self._connection is None, attributeTracker.whoSet(self, '_connection')
assert connection.getUUID() in (None, self._uuid), connection
connection.setUUID(self._uuid)
......
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