Commit 27a18f96 authored by Vincent Pelletier's avatar Vincent Pelletier

Do not close listening connection on secondary masters.

parent 40ba937d
......@@ -362,7 +362,8 @@ class Application(object):
# Restart completely. Non-optimized
# but lower level code needs to be stabilized first.
for conn in self.em.getConnectionList():
conn.close()
if not conn.isListening():
conn.close()
# Reconnect to primary master node.
primary_handler = secondary.PrimaryHandler(self)
......
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