Permalink
Browse files

Better error handling for exceptions in on_message for websockets: av…

…oid extra IOErrors
  • Loading branch information...
1 parent d762011 commit 9d9b5e26eaa7c1ed61957ca212a1cb5b1aa71074 @kmike committed May 4, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 tornado/websocket.py
View
@@ -191,6 +191,7 @@ def _on_end_delimiter(self, frame):
if not self.client_terminated:
self.async_callback(self.on_message)(
frame[:-1].decode("utf-8", "replace"))
+ if not self.client_terminated:
self._receive_message()
def _on_length_indicator(self, byte):

0 comments on commit 9d9b5e2

Please sign in to comment.