sleep in the right place

This commit is contained in:
Blake Blackshear 2020-11-24 09:16:54 -06:00
parent addfa2a32d
commit e9ecc20a36

View File

@ -207,6 +207,7 @@ class EventCleanup(threading.Thread):
break break
# only expire events every 10 minutes, but check for stop events every 10 seconds # only expire events every 10 minutes, but check for stop events every 10 seconds
time.sleep(10)
counter = counter + 1 counter = counter + 1
if counter < 60: if counter < 60:
continue continue
@ -280,5 +281,3 @@ class EventCleanup(threading.Thread):
Event.label == l.label) Event.label == l.label)
) )
delete_query.execute() delete_query.execute()
time.sleep(10)