其中一方断线后,通知另一方断开连接

This commit is contained in:
ranchuan
2024-05-23 11:14:17 +08:00
parent 01a7700619
commit b36e74f798
5 changed files with 58 additions and 8 deletions

View File

@@ -40,6 +40,7 @@ def dispose_client_request(tcp_client_1,tcp_addr):
break
print(f"客户端:{tcp_addr} 已下线")
tcp_client_1.close()
target.close()