Commit 93013dd5 authored by 广宏伟's avatar 广宏伟

Merged in dev (pull request #77)

[Update] 修复一个小bug
parents aa4d989d 518a92d0
......@@ -210,7 +210,7 @@ class ProxyNamespace(BaseNamespace):
def on_logout(self, room_id):
room = self.connections.get(request.sid, {}).get(room_id)
if room:
room["proxy"].close()
room.get("proxy") and room["proxy"].close()
self.close_room(room_id)
del self.connections[request.sid][room_id]
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