Commit 7c01f428 authored by ibuler's avatar ibuler

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

parent 18c46fc4
...@@ -124,7 +124,8 @@ class SSHServer: ...@@ -124,7 +124,8 @@ 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)
connection.remove_client(client.id) if connection:
connection.remove_client(client.id)
def shutdown(self): def shutdown(self):
self.stop_evt.set() self.stop_evt.set()
......
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