Commit 7c01f428 authored by ibuler's avatar ibuler

[Bugfix] 修复关闭client失败的问题

parent 18c46fc4
...@@ -124,6 +124,7 @@ class SSHServer: ...@@ -124,6 +124,7 @@ class SSHServer:
client.send_unicode(msg) client.send_unicode(msg)
finally: finally:
connection = Connection.get_connection(client.connection_id) connection = Connection.get_connection(client.connection_id)
if connection:
connection.remove_client(client.id) connection.remove_client(client.id)
def shutdown(self): def shutdown(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