Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix the IOStream close callback not getting called if there are pendi…

…ng callbacks.

_maybe_add_error_listener only does anything if _state is None.
  • Loading branch information...
commit 96f057c3cdc00899dbdf6364b00b3b2f1b4cea96 1 parent 468d37c
@flodiebold authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  tornado/iostream.py
View
1  tornado/iostream.py
@@ -224,6 +224,7 @@ def close(self):
self._consume(self._read_buffer_size))
if self._state is not None:
self.io_loop.remove_handler(self.socket.fileno())
+ self._state = None
self.socket.close()
self.socket = None
if self._close_callback and self._pending_callbacks == 0:

0 comments on commit 96f057c

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