From e980c2c70f0d0a75d4f9c8e631318499541b574d Mon Sep 17 00:00:00 2001 From: swee Date: Fri, 3 Jan 2025 17:04:49 -0800 Subject: [PATCH] Update server.py --- server.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/server.py b/server.py index 2792d2f..4205260 100644 --- a/server.py +++ b/server.py @@ -620,10 +620,6 @@ def tcp_session(sock): ip_to = restrict_ip threading.Thread(target=session, daemon=True, args=[connection, client, ip_to]).start() except: - print("Shutting down...") - time.sleep(2) - sock.shutdown(1) - sock.close() print("Something went wrong...") print(traceback.format_exc()) def ssl_session(sock2): @@ -636,10 +632,6 @@ def ssl_session(sock2): ip_to = restrict_ip threading.Thread(target=session, daemon=True, args=[connection, client, ip_to]).start() except: - print("Shutting down...") - time.sleep(2) - sock.shutdown(1) - sock.close() print("Something went wrong...") print(traceback.format_exc()) for ip, i in sockets.items():