mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-21 19:07:46 +01:00
dont refresh cache if exiting
This commit is contained in:
parent
f3db69d975
commit
469259d663
@ -141,6 +141,7 @@ class EventProcessor(threading.Thread):
|
||||
try:
|
||||
event_type, camera, event_data = self.event_queue.get(timeout=10)
|
||||
except queue.Empty:
|
||||
if not self.stop_event.is_set():
|
||||
self.refresh_cache()
|
||||
continue
|
||||
|
||||
|
@ -105,7 +105,7 @@ class TrackedObjectProcessor(threading.Thread):
|
||||
def run(self):
|
||||
while True:
|
||||
if self.stop_event.is_set():
|
||||
print(f"Exiting event processor...")
|
||||
print(f"Exiting object processor...")
|
||||
break
|
||||
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user