mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-03-12 11:27:34 +03:00
add guard to prevent crash when camera is no longer in camera_states
This commit is contained in:
parent
9743579c29
commit
e6feca45fb
@ -704,6 +704,10 @@ class TrackedObjectProcessor(threading.Thread):
|
|||||||
continue
|
continue
|
||||||
|
|
||||||
current_enabled = config.enabled
|
current_enabled = config.enabled
|
||||||
|
camera_state = self.camera_states.get(camera)
|
||||||
|
if camera_state is None:
|
||||||
|
continue
|
||||||
|
|
||||||
camera_state = self.camera_states[camera]
|
camera_state = self.camera_states[camera]
|
||||||
|
|
||||||
if camera_state.prev_enabled and not current_enabled:
|
if camera_state.prev_enabled and not current_enabled:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user