Commit 3755efe6 authored by Aurel's avatar Aurel

close connection to all nodes which are not running when being

notified about its state


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@625 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent aee144bb
......@@ -108,7 +108,7 @@ class PrimaryHandler(BaseHandler):
n.setState(state)
# close connection to this node if no longer running
if node_type in (MASTER_NODE_TYPE, STORAGE_NODE_TYPE) and \
state in (DOWN_STATE, HIDDEN_STATE):
state != RUNNING_STATE:
for conn in self.app.em.getConnectionList():
if conn.getUUID() == n.getUUID():
conn.close()
......
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