mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-07-26 13:47:03 +02:00
Fix enabled status not being persisted
This commit is contained in:
parent
4a0eef6123
commit
8b81b06fc3
@ -113,8 +113,10 @@ def capture_frames(
|
||||
def get_enabled_state():
|
||||
"""Fetch the latest enabled state from ZMQ."""
|
||||
_, config_data = config_subscriber.check_for_update()
|
||||
|
||||
if config_data:
|
||||
return config_data.enabled
|
||||
config.enabled = config_data.enabled
|
||||
|
||||
return config.enabled
|
||||
|
||||
while not stop_event.is_set():
|
||||
|
Loading…
Reference in New Issue
Block a user