Commit 9f4dd15e authored by Julien Muchembled's avatar Julien Muchembled

client: remove redundant check of new connections to the master

We already have logs when a connection fails,
and ask() raises ConnectionClosed if the connection is closed.
parent e791dc3f
......@@ -235,12 +235,6 @@ class Application(ThreadedApplication):
self.notifications_handler,
node=self.trying_master_node,
dispatcher=self.dispatcher)
# Query for primary master node
if conn.getConnector() is None:
# This happens if a connection could not be established.
logging.error('Connection to master node %s failed',
self.trying_master_node)
continue
try:
ask(conn, Packets.RequestIdentification(
NodeTypes.CLIENT, self.uuid, None, self.name),
......
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