Update server.py

This commit is contained in:
Nova Cat 2025-02-05 15:38:28 -08:00
parent 52e02efc2b
commit 0940bbd211

View file

@ -306,6 +306,8 @@ def session(connection, client, ip, isssl=False):
print("Received data: {}".format(data)) print("Received data: {}".format(data))
try: try:
textt += data.decode() textt += data.decode()
if not property_list[pending]["ping_pending"]:
property_list[pending]["last_ping"] = time.time()
#if pending != "*": #if pending != "*":
# if (time.time() - last_ping) > 30 and not ping_pending: # if (time.time() - last_ping) > 30 and not ping_pending:
# print(f"Sending ping msg to {pending}") # print(f"Sending ping msg to {pending}")