Commit d3a96466 authored by Vincent Pelletier's avatar Vincent Pelletier

Connection can be closed before we had the time to create a node from peer.


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@743 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent b43bf3b9
......@@ -36,7 +36,7 @@ class ServiceEventHandler(MasterEventHandler):
def connectionClosed(self, conn):
node = self.app.nm.getNodeByUUID(conn.getUUID())
if node.getState() == RUNNING_STATE:
if node is not None and node.getState() == RUNNING_STATE:
self._dropIt(conn, node, TEMPORARILY_DOWN_STATE)
MasterEventHandler.connectionClosed(self, conn)
......
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