Commit 518a92d0 authored by ibuler's avatar ibuler

[Update] 修复一个小bug

parent 27c67ee0
...@@ -210,7 +210,7 @@ class ProxyNamespace(BaseNamespace): ...@@ -210,7 +210,7 @@ class ProxyNamespace(BaseNamespace):
def on_logout(self, room_id): def on_logout(self, room_id):
room = self.connections.get(request.sid, {}).get(room_id) room = self.connections.get(request.sid, {}).get(room_id)
if room: if room:
room["proxy"].close() room.get("proxy") and room["proxy"].close()
self.close_room(room_id) self.close_room(room_id)
del self.connections[request.sid][room_id] del self.connections[request.sid][room_id]
del room del room
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment