Commit bc7bced2 authored by Grégory Wisniewski's avatar Grégory Wisniewski

Clear admin's dispatcher when the master connection is lost.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@2240 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 7b7d2f95
......@@ -46,6 +46,11 @@ class Dispatcher:
def registered(self, msg_id):
return self.message_table.has_key(msg_id)
def clear(self):
"""
Unregister packet expected for a given connection
"""
del self.message_table
class Application(object):
"""The storage node application."""
......
......@@ -114,6 +114,7 @@ class MasterEventHandler(EventHandler):
def _connectionLost(self, conn):
app = self.app
assert app.master_conn in (conn, None)
app.dispatcher.clear()
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