From fe9fcf3eaa582c0458fd9176608b7a17c9cf53c7 Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Sat, 7 Oct 2023 09:18:07 -0500 Subject: [PATCH] remove erroneous check for move threads (#8031) --- frigate/ptz/autotrack.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/frigate/ptz/autotrack.py b/frigate/ptz/autotrack.py index ec5592218..0f92a67f5 100644 --- a/frigate/ptz/autotrack.py +++ b/frigate/ptz/autotrack.py @@ -237,13 +237,12 @@ class PtzAutoTracker: self.onvif.get_camera_status(camera_name) # movement thread per camera - if not self.move_threads or not self.move_threads[camera_name]: - self.move_threads[camera_name] = threading.Thread( - name=f"move_thread_{camera_name}", - target=partial(self._process_move_queue, camera_name), - ) - self.move_threads[camera_name].daemon = True - self.move_threads[camera_name].start() + self.move_threads[camera_name] = threading.Thread( + name=f"move_thread_{camera_name}", + target=partial(self._process_move_queue, camera_name), + ) + self.move_threads[camera_name].daemon = True + self.move_threads[camera_name].start() if cam.onvif.autotracking.movement_weights: self.intercept[camera_name] = cam.onvif.autotracking.movement_weights[0]