This commit is contained in:
Marks Polakovs 2020-04-13 14:24:31 +02:00
parent 86c29a997f
commit 9da85215bb

View file

@ -179,7 +179,10 @@ class Session(object):
await self.websocket.close(1008) await self.websocket.close(1008)
if self.connection_id in active_sessions: if self.connection_id in active_sessions:
print(self.connection_id, "removing from active_sessions")
del active_sessions[self.connection_id] del active_sessions[self.connection_id]
print("active_sessions now")
print(active_sessions)
if len(active_sessions) == 0: if len(active_sessions) == 0:
write_ob_status(False) write_ob_status(False)
else: else: