From 0b85583156b48d3926bebb3878e23e6e75af6264 Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Thu, 26 Jun 2025 09:14:02 -0500 Subject: [PATCH] Fix frame cache race bug Objects that were marked as false positives (that would later become true positives) would sometimes have their saved frame prematurely removed from the frame cache. --- frigate/camera/state.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frigate/camera/state.py b/frigate/camera/state.py index 620873cba..06564bce2 100644 --- a/frigate/camera/state.py +++ b/frigate/camera/state.py @@ -426,7 +426,7 @@ class CameraState: current_thumb_frames = { obj.thumbnail_data["frame_time"] for obj in tracked_objects.values() - if not obj.false_positive and obj.thumbnail_data is not None + if obj.thumbnail_data is not None } current_best_frames = { obj.thumbnail_data["frame_time"] for obj in self.best_objects.values()