oops remove subscribers when they disconnect
This commit is contained in:
parent
6efa7f8d1d
commit
fff53125dd
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ class WSHandler(tornado.websocket.WebSocketHandler):
|
|||
|
||||
def on_close(self):
|
||||
if hasattr(self, 'topic'):
|
||||
SUBSCRIBERS.setdefault(self.topic, []).append(self)
|
||||
SUBSCRIBERS.get(self.topic, []).remove(self)
|
||||
|
||||
|
||||
application = tornado.web.Application([
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue