fix(gc): for connection in self.clients[request.sid]["chan"]:

RuntimeError: dictionary changed size during iteration
parent fe1e9746
......@@ -87,7 +87,8 @@ class SSHws(Namespace):
def on_disconnect(self):
print("disconnect")
for connection in self.clients[request.sid]["chan"]:
self.on_logout(connection)
self.clients[request.sid]["chan"][connection].close()
del self.clients[request.sid]["chan"]
pass
def on_leave(self):
......
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