fix: udpate

parent 2bb32118
......@@ -146,7 +146,7 @@ class SSHws(Namespace, BaseWebSocketHandler):
pass
def on_logout(self, connection):
if request.sid and connection and (request.sid in self.clients.keys()):
if connection and (request.sid in self.clients.keys()):
if connection in self.clients[request.sid]["proxy"].keys():
proxy = self.clients[request.sid]["proxy"][connection]
del self.clients[request.sid]["proxy"][connection]
......
......@@ -228,5 +228,5 @@ class WSProxy:
def close(self):
self.stop_event.set()
self.child.close()
self.ws.on_logout(self.connection)
self.ws.emit("logout", {'room': self.connection})
logger.debug("Proxy {} closed".format(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