diff --git a/server.py b/server.py index 23641f6..691582c 100644 --- a/server.py +++ b/server.py @@ -234,7 +234,7 @@ def session(connection, client): connection.sendall(bytes(f":{pending}!~{username}@{hostname} {text}\r\n","UTF-8")) connection.sendall(bytes(f"ERROR :Closing Link: {hostname} ({msg})\r\n","UTF-8")) except: - pass + break connection.close() safe_quit = True break