Browse Source

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

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

3
libs/tornado/ioloop.py

@ -676,7 +676,8 @@ class PollIOLoop(IOLoop):
while self._events:
fd, events = self._events.popitem()
try:
self._handlers[fd](fd, events)
if self._handlers.has_key(fd):
self._handlers[fd](fd, events)
except (OSError, IOError) as e:
if e.args[0] == errno.EPIPE:
# Happens when the client closes the connection

Loading…
Cancel
Save