Commit e3d2bada authored by Aurel's avatar Aurel

do not connect to down or hidden node


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@606 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 1d5b4e64
......@@ -145,6 +145,8 @@ class ConnectionPool(object):
def getConnForNode(self, node):
"""Return a locked connection object to a given node
If no connection exists, create a new one"""
if node.getNodeState() in (DOWN_STATE, HIDDEN_STATE):
return None
uuid = node.getUUID()
self.connection_lock_acquire()
try:
......
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