Permalink
Browse files

Stopped heartbeats on connection close to prevent IOErrors.

  • Loading branch information...
psobot committed Oct 2, 2011
1 parent b8dbee2 commit 6ad1d0b2951c4aa3b465dc7fd076d11f45a9ca77
Showing with 3 additions and 1 deletion.
  1. +3 −1 tornadio/conn.py
View
@@ -79,7 +79,9 @@ def send(self, message):
self._protocol.send(message)
def close(self):
"""Focibly close client connection"""
"""Focibly close client connection.
Stop heartbeats as well, as they would cause IOErrors once the connection is closed."""
self.stop_heartbeat()
self._protocol.close()
def raw_message(self, message):

0 comments on commit 6ad1d0b

Please sign in to comment.