mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-03-17 21:58:22 +03:00
fix: reset active_cameras to set() not list in error handler
In BirdsEyeFrameManager.update(), the exception handler on line 756 resets self.active_cameras to [] (a list), but it is initialized as set() and compared as a set throughout the rest of the code. Since set() \!= [] evaluates to True even though both are empty, the next call to update_frame() will incorrectly detect a layout change and trigger an unnecessary frame rebuild after every exception.
This commit is contained in:
parent
5a214eb0d1
commit
be430359b7
@ -753,7 +753,7 @@ class BirdsEyeFrameManager:
|
||||
frame_changed, layout_changed = self.update_frame(frame)
|
||||
except Exception:
|
||||
frame_changed, layout_changed = False, False
|
||||
self.active_cameras = []
|
||||
self.active_cameras = set()
|
||||
self.camera_layout = []
|
||||
print(traceback.format_exc())
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user