Only ping once every two seconds (#2448)

This commit is contained in:
Alex Iribarren 2021-10-06 00:44:48 +02:00 committed by GitHub
parent b8b30599ee
commit 7bbb5213f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -582,7 +582,7 @@ class MDNSStatusThread(threading.Thread):
class PingStatusThread(threading.Thread):
def run(self):
with multiprocessing.Pool(processes=8) as pool:
while not STOP_EVENT.is_set():
while not STOP_EVENT.wait(2):
# Only do pings if somebody has the dashboard open
def callback(ret):