From 4b1804137646e8de087f6985f124640b90380c5f Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Fri, 16 Feb 2024 06:51:10 -0700 Subject: [PATCH] Check for updates from all cameras --- frigate/record/maintainer.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/frigate/record/maintainer.py b/frigate/record/maintainer.py index d3a814b9b..6a70ee298 100644 --- a/frigate/record/maintainer.py +++ b/frigate/record/maintainer.py @@ -443,11 +443,14 @@ class RecordingMaintainer(threading.Thread): run_start = datetime.datetime.now().timestamp() # check if there is an updated config - updated_topic, updated_record_config = ( - self.config_subscriber.check_for_update() - ) + while True: + updated_topic, updated_record_config = ( + self.config_subscriber.check_for_update() + ) + + if not updated_topic: + break - if updated_topic: camera_name = updated_topic.rpartition("/")[-1] self.config.cameras[camera_name].record = updated_record_config