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): ...@@ -235,12 +235,6 @@ class Application(ThreadedApplication):
self.notifications_handler, self.notifications_handler,
node=self.trying_master_node, node=self.trying_master_node,
dispatcher=self.dispatcher) 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: try:
ask(conn, Packets.RequestIdentification( ask(conn, Packets.RequestIdentification(
NodeTypes.CLIENT, self.uuid, None, self.name), 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