Commit 291344ac authored by Grégory Wisniewski's avatar Grégory Wisniewski

Drop client connections when leaving operation state.

And clear queued event.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@2070 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 4c79f0b7
...@@ -166,6 +166,11 @@ class Application(object): ...@@ -166,6 +166,11 @@ 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.
self.event_queue = deque()
# drop any client node
for node in self.nm.getClientList():
node.getConnection().close()
try: try:
self.verifyData() self.verifyData()
self.initialize() self.initialize()
...@@ -262,9 +267,6 @@ class Application(object): ...@@ -262,9 +267,6 @@ class Application(object):
self.dm.dropUnfinishedData() self.dm.dropUnfinishedData()
self.tm.reset() self.tm.reset()
# This is a queue of events used to delay operations due to locks.
self.event_queue = deque()
# The replicator. # The replicator.
self.replicator = Replicator(self) self.replicator = Replicator(self)
......
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