Commit 68972dad authored by Grégory Wisniewski's avatar Grégory Wisniewski

Only a primary master is binded to this handler.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@1617 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 946faf6f
......@@ -93,12 +93,8 @@ class PrimaryNotificationsHandler(BaseHandler):
app = self.app
logging.critical("connection to primary master node closed")
conn.close()
if app.master_conn is conn:
app.master_conn = None
app.primary_master_node = None
else:
logging.warn('app.master_conn is %s, but we are closing %s',
app.master_conn, conn)
app.master_conn = None
app.primary_master_node = None
super(PrimaryNotificationsHandler, self).connectionClosed(conn)
def timeoutExpired(self, conn):
......
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