From 76c8e3a12f58bbdb504eb72fa94422c9e3522439 Mon Sep 17 00:00:00 2001 From: Blake Blackshear Date: Thu, 9 Jan 2020 06:49:39 -0600 Subject: [PATCH] make a copy --- frigate/object_detection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frigate/object_detection.py b/frigate/object_detection.py index 552ce603d..9ff56424d 100644 --- a/frigate/object_detection.py +++ b/frigate/object_detection.py @@ -58,7 +58,7 @@ class RegionRequester(threading.Thread): frame_time = self.camera.frame_time.value # grab the current tracked objects - tracked_objects = self.camera.object_tracker.tracked_objects.values() + tracked_objects = self.camera.object_tracker.tracked_objects.values().copy() with self.camera.regions_in_process_lock: self.camera.regions_in_process[frame_time] = len(self.camera.config['regions'])