mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-11-17 02:53:01 +03:00
add guard to prevent crash when camera is no longer in camera_states
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user