Commit 1c315e5e authored by Vincent Pelletier's avatar Vincent Pelletier

Apply commit 1221 to SelectEventManager.


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@1223 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 2b0bf748
...@@ -132,8 +132,10 @@ class SelectEventManager(object): ...@@ -132,8 +132,10 @@ class SelectEventManager(object):
# See if there is anything to process # See if there is anything to process
to_process = self._getPendingConnection() to_process = self._getPendingConnection()
if to_process is not None: if to_process is not None:
try:
# Process # Process
to_process.process() to_process.process()
finally:
# ...and requeue if there are pending messages # ...and requeue if there are pending messages
if to_process.hasPendingMessages(): if to_process.hasPendingMessages():
self._addPendingConnection(to_process) self._addPendingConnection(to_process)
......
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