From f67203ceb2e2af2f5a81ac302b9f8ad5e10d584b Mon Sep 17 00:00:00 2001 From: swee Date: Tue, 10 Dec 2024 21:37:57 -0800 Subject: [PATCH] Update server.py --- server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.py b/server.py index 37181e2..7018faa 100644 --- a/server.py +++ b/server.py @@ -38,8 +38,8 @@ def pinger(nick, connection): print(property_list[nick]["ping_pending"] == True) if (time.time() - property_list[nick]["last_ping"]) > 60 and not property_list[nick]["ping_pending"]: print("Sent ping message to " + nick) - connection.sendall(bytes(f"PING {server}\r\n","UTF-8")) property_list[nick]["ping_pending"] = True + connection.sendall(bytes(f"PING {server}\r\n","UTF-8")) elif property_list[nick]["ping_pending"] and ((time.time() - property_list[nick]["last_ping"]) > 120): property_list[nick]["cause"] = "Ping timeout: 120 seconds" connection.shutdown(socket.SHUT_WR)