add guard to prevent crash when camera is no longer in camera_states

This commit is contained in:
Josh Hawkins 2026-03-01 07:28:03 -06:00
parent 9743579c29
commit e6feca45fb

View File

@ -704,6 +704,10 @@ class TrackedObjectProcessor(threading.Thread):
continue
current_enabled = config.enabled
camera_state = self.camera_states.get(camera)
if camera_state is None:
continue
camera_state = self.camera_states[camera]
if camera_state.prev_enabled and not current_enabled: