Skip to content
Browse files

Add a workaround for a problem on CDO.

  • Loading branch information...
1 parent d0f8897 commit 6b2cea8841fe5c4b4d414f87ef8aa7cbdad7ad7d @flodiebold committed Feb 23, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 tornado/ioloop.py
View
5 tornado/ioloop.py
@@ -313,6 +313,11 @@ def start(self):
else:
logging.error("Exception in I/O handler for fd %s",
fd, exc_info=True)
+ except KeyError:
+ try:
+ self._impl.unregister(fd)
+ except (OSError, IOError):
+ logging.warn("Error deleting fd from IOLoop", exc_info=True)
except Exception:
logging.error("Exception in I/O handler for fd %s",
fd, exc_info=True)

0 comments on commit 6b2cea8

Please sign in to comment.
Something went wrong with that request. Please try again.