Check for updates from all cameras

This commit is contained in:
Nicolas Mowen 2024-02-16 06:51:10 -07:00
parent 44813519a8
commit ccacdc6a1b

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
while True:
updated_topic, updated_record_config = ( updated_topic, updated_record_config = (
self.config_subscriber.check_for_update() self.config_subscriber.check_for_update()
) )
if updated_topic: if not updated_topic:
break
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