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

Simplify code pattern.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@1535 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 171c6592
......@@ -95,9 +95,8 @@ class ClientElectionHandler(ElectionHandler):
app.negotiating_master_node_set.discard(addr)
node = app.nm.getByAddress(addr)
if node.isRunning():
app.unconnected_master_node_set.add(addr)
node.setTemporarilyDown()
elif node.isTemporarilyDown():
if node.isTemporarilyDown():
app.unconnected_master_node_set.add(addr)
MasterHandler.connectionFailed(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