From: Ben Darnell Date: Sat, 6 Nov 2010 18:07:59 +0000 (-0700) Subject: Fix typo from commit 2b44fac X-Git-Tag: v1.2.0~85 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3e44643d3b89c99c6bc285b0e650ab12ee06fb16;p=thirdparty%2Ftornado.git Fix typo from commit 2b44fac Closes #169. --- diff --git a/tornado/iostream.py b/tornado/iostream.py index 4f321d557..3bea7e121 100644 --- a/tornado/iostream.py +++ b/tornado/iostream.py @@ -359,7 +359,7 @@ class IOStream(object): raise IOError("Stream is closed") def _add_io_state(self, state): - if socket is None: + if self.socket is None: # connection has been closed, so there can be no future events return if not self._state & state: