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,11 +132,13 @@ class SelectEventManager(object):
# See if there is anything to process
to_process = self._getPendingConnection()
if to_process is not None:
# Process
to_process.process()
# ...and requeue if there are pending messages
if to_process.hasPendingMessages():
self._addPendingConnection(to_process)
try:
# Process
to_process.process()
finally:
# ...and requeue if there are pending messages
if to_process.hasPendingMessages():
self._addPendingConnection(to_process)
def _poll(self, timeout = 1):
rlist, wlist, xlist = select(self.reader_set, self.writer_set, self.exc_list,
......
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