Check for updates from all cameras

This commit is contained in:
Nicolas Mowen 2024-02-16 06:51:10 -07:00
parent 6374b06c3f
commit 4b18041376

View File

@ -443,11 +443,14 @@ class RecordingMaintainer(threading.Thread):
run_start = datetime.datetime.now().timestamp() run_start = datetime.datetime.now().timestamp()
# check if there is an updated config # check if there is an updated config
updated_topic, updated_record_config = ( while True:
self.config_subscriber.check_for_update() 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] camera_name = updated_topic.rpartition("/")[-1]
self.config.cameras[camera_name].record = updated_record_config self.config.cameras[camera_name].record = updated_record_config