Merge pull request #258 from kmike/master

Better error handling for websockets
This commit is contained in:
bdarnell 2011-05-05 22:51:26 -07:00
commit 2b417a153a
1 changed files with 1 additions and 0 deletions

View File

@ -191,6 +191,7 @@ class WebSocketHandler(tornado.web.RequestHandler):
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):