Commit 6f62b516 authored by Antoine Millet's avatar Antoine Millet

Fixed bug with polling object.

parent 8130579c
......@@ -43,9 +43,13 @@ class ConnectionManager(object):
'''
while self._running:
events = self._poll.poll(ConnectionManager.POLL_TIMEOUT)
for fd, event in events:
self.handle_event(fd, event)
try:
events = self._poll.poll(ConnectionManager.POLL_TIMEOUT)
except IOError:
pass
else:
for fd, event in events:
self.handle_event(fd, event)
def start(self, daemonize=False):
'''
......
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