From ada340483564a536c059f6ab43dcb7eb9bd4c21b Mon Sep 17 00:00:00 2001 From: MuedeHydra Date: Mon, 24 Nov 2025 18:57:44 +0100 Subject: [PATCH] add ninally --- client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client.py b/client.py index e28aefe..9d6a276 100644 --- a/client.py +++ b/client.py @@ -56,9 +56,9 @@ if __name__ == "__main__": read_msg(s) except ConnectionRefusedError: print("Could not connect to the server!") + finally: + s.close() except KeyboardInterrupt: print("Exit with CTRL+C") - finally: - pass