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

Fixed bug with polling object.

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