From e9ecc20a363c3e8383c4ce6728e716cb01bd3d24 Mon Sep 17 00:00:00 2001 From: Blake Blackshear Date: Tue, 24 Nov 2020 09:16:54 -0600 Subject: [PATCH] sleep in the right place --- frigate/events.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/frigate/events.py b/frigate/events.py index 27ca2a577..cdb769073 100644 --- a/frigate/events.py +++ b/frigate/events.py @@ -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)