Catch IOError in addition to OSError in IOLoop.remove_handler
(friendfeed's epoll module throws OSError, while the one in the standard library throws IOError)
This commit is contained in:
parent
7014417608
commit
8c2429dbd3
|
@ -102,7 +102,7 @@ class IOLoop(object):
|
|||
"""Returns a global IOLoop instance.
|
||||
|
||||
Most single-threaded applications have a single, global IOLoop.
|
||||
Use this method instead of passing around IOLoop instances
|
||||
Use this method instead of passing around IOLoop instances
|
||||
throughout your code.
|
||||
|
||||
A common pattern for classes that depend on IOLoops is to use
|
||||
|
@ -136,7 +136,7 @@ class IOLoop(object):
|
|||
self._events.pop(fd, None)
|
||||
try:
|
||||
self._impl.unregister(fd)
|
||||
except OSError:
|
||||
except (OSError, IOError):
|
||||
logging.debug("Error deleting fd from IOLoop", exc_info=True)
|
||||
|
||||
def start(self):
|
||||
|
|
Loading…
Reference in New Issue