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

Do not close listening connection on secondary masters.

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