From 399dca4a19ce9ed2c38ef936eb5f3ce292a44a14 Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Mon, 16 Mar 2026 17:05:03 -0500 Subject: [PATCH] check for config update before state evaluation --- frigate/events/audio.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frigate/events/audio.py b/frigate/events/audio.py index e88f2ae71..4af195990 100644 --- a/frigate/events/audio.py +++ b/frigate/events/audio.py @@ -321,6 +321,9 @@ class AudioEventMaintainer(threading.Thread): self.start_or_restart_ffmpeg() while not self.stop_event.is_set(): + # check if there is an updated config + self.config_subscriber.check_for_updates() + enabled = self.camera_config.enabled if enabled != self.was_enabled: if enabled: @@ -347,9 +350,6 @@ class AudioEventMaintainer(threading.Thread): time.sleep(0.1) continue - # check if there is an updated config - self.config_subscriber.check_for_updates() - self.read_audio() if self.audio_listener: