Commit 8706262a authored by Grégory Wisniewski's avatar Grégory Wisniewski

Clear queued events after node disconnection.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@2077 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent f132761c
...@@ -166,11 +166,10 @@ class Application(object): ...@@ -166,11 +166,10 @@ class Application(object):
node = self.nm.getByUUID(self.uuid) node = self.nm.getByUUID(self.uuid)
if node is not None and node.isHidden(): if node is not None and node.isHidden():
self.wait() self.wait()
# This is a queue of events used to delay operations due to locks. # drop any client node and clear event queue
self.event_queue = deque()
# drop any client node
for node in self.nm.getClientList(): for node in self.nm.getClientList():
node.getConnection().close() node.getConnection().close()
self.event_queue = deque()
try: try:
self.verifyData() self.verifyData()
self.initialize() self.initialize()
......
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