sleep in the right place

This commit is contained in:
Blake Blackshear 2020-11-24 09:16:54 -06:00
parent 5992e85dc8
commit 2e15847f86

View File

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