Commit a3dadc1c authored by Vincent Pelletier's avatar Vincent Pelletier

It is possible to loose a connection before master_conn was set (for example,...

It is possible to loose a connection before master_conn was set (for example, when reconnecting to a master being shutdown). Fix this assert to ignore that case.


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@1074 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 12c970c6
......@@ -125,7 +125,7 @@ class MasterEventHandler(EventHandler):
def _connectionLost(self, conn):
app = self.app
assert app.master_conn is conn
assert app.master_conn in (conn, None)
app.master_conn = None
app.master_node = None
app.uuid = None
......
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