Skip to content

Commit

Permalink
Fixed compatibility issue with tornado 2.2. Fixes #25.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrjoes committed Feb 9, 2012
1 parent 9b9d4a4 commit ae2856a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tornadio2/persistent.py
Expand Up @@ -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()
Expand Down

0 comments on commit ae2856a

Please sign in to comment.