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

Simplify a set intersection with only one element.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@1505 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent d880794d
......@@ -191,10 +191,8 @@ class ClientElectionHandler(ElectionHandler):
# Stop waiting for connections than primary master's to
# complete to exit election phase ASAP.
primary_server = primary_node.getAddress()
app.unconnected_master_node_set.intersection_update(
[primary_server])
app.negotiating_master_node_set.intersection_update(
[primary_server])
app.unconnected_master_node_set = set([primary_server])
app.negotiating_master_node_set = set([primary_server])
# Request a node identification.
conn.ask(Packets.RequestIdentification(
......
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