parent
52e02efc2b
commit
0940bbd211
1 changed files with 2 additions and 0 deletions
|
@ -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}")
|
||||||
|
|
Loading…
Add table
Reference in a new issue