Browse Source

Don't run handler if it doesn't exist..

pull/1981/merge
Ruud 12 years ago
parent
commit
16f0bcc3ac
  1. 1
      libs/tornado/ioloop.py

1
libs/tornado/ioloop.py

@ -676,6 +676,7 @@ class PollIOLoop(IOLoop):
while self._events:
fd, events = self._events.popitem()
try:
if self._handlers.has_key(fd):
self._handlers[fd](fd, events)
except (OSError, IOError) as e:
if e.args[0] == errno.EPIPE:

Loading…
Cancel
Save