Update server.py

This commit is contained in:
Nova Cat 2025-02-05 19:11:26 -08:00
parent 3b7ae6f42a
commit 2a4f3032d9

View file

@ -319,7 +319,7 @@ 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 pending != "*" and not property_list[pending]["ping_pending"]: if finished and not property_list[pending]["ping_pending"]:
property_list[pending]["last_ping"] = time.time() 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: