Permalink
Browse files

Fixed compatibility issue with tornado 2.2. Fixes #25.

  • Loading branch information...
1 parent 9b9d4a4 commit ae2856a5d8831daec1ecae79755ca4d4aa1bc315 @mrjoes committed Feb 9, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 tornadio2/persistent.py
View
@@ -146,7 +146,7 @@ def send_messages(self, messages):
for m in messages:
self.write_message(m)
except IOError:
- if self.client_terminated:
+ if self.ws_connection and self.ws_connection.client_terminated:
logging.debug('Dropping active websocket connection due to IOError.')
self._detach()

0 comments on commit ae2856a

Please sign in to comment.