mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-07 03:35:26 +03:00
fix queues not emptying fully by changing gets to a blocking call with short timeout
This commit is contained in:
parent
fa6c6c50d0
commit
860a12ef70
@ -420,7 +420,7 @@ class RecordingMaintainer(threading.Thread):
|
||||
current_tracked_objects,
|
||||
motion_boxes,
|
||||
regions,
|
||||
) = self.object_recordings_info_queue.get(False)
|
||||
) = self.object_recordings_info_queue.get(True, timeout=0.1)
|
||||
|
||||
if self.process_info[camera]["record_enabled"].value:
|
||||
self.object_recordings_info[camera].append(
|
||||
@ -442,7 +442,7 @@ class RecordingMaintainer(threading.Thread):
|
||||
camera,
|
||||
frame_time,
|
||||
dBFS,
|
||||
) = self.audio_recordings_info_queue.get(False)
|
||||
) = self.audio_recordings_info_queue.get(True, timeout=0.1)
|
||||
|
||||
if self.process_info[camera]["record_enabled"].value:
|
||||
self.audio_recordings_info[camera].append(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user