Commit e92d528c authored by Grégory Wisniewski's avatar Grégory Wisniewski

Call super methods and remove wrong call to 'connectionFailed'

git-svn-id: https://svn.erp5.org/repos/neo/trunk@1543 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 3973e15a
......@@ -91,13 +91,14 @@ class ClientElectionHandler(ElectionHandler):
# connection successfull, set it as running
node.setRunning()
conn.ask(Packets.AskPrimary())
MasterHandler.connectionCompleted(self, conn)
def connectionClosed(self, conn):
addr = conn.getAddress()
node = self.app.nm.getByAddress(addr)
node.setTemporarilyDown()
self.app.negotiating_master_node_set.discard(addr)
self.connectionFailed(conn)
MasterHandler.connectionClosed(self, conn)
def timeoutExpired(self, conn):
addr = conn.getAddress()
......
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