mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-21 19:07:46 +01:00
cleanup frame queue
This commit is contained in:
parent
e4da3822b1
commit
7d683ef399
@ -303,8 +303,15 @@ def main():
|
|||||||
event_processor.join()
|
event_processor.join()
|
||||||
object_processor.join()
|
object_processor.join()
|
||||||
camera_watchdog.join()
|
camera_watchdog.join()
|
||||||
for camera_process in camera_processes.values():
|
for camera_name, camera_process in camera_processes.items():
|
||||||
camera_process['capture_thread'].join()
|
camera_process['capture_thread'].join()
|
||||||
|
# cleanup the frame queue
|
||||||
|
while not camera_process['frame_queue'].empty():
|
||||||
|
frame_time = camera_process['frame_queue'].get()
|
||||||
|
shm = mp.shared_memory.SharedMemory(name=f"{camera_name}{frame_time}")
|
||||||
|
shm.close()
|
||||||
|
shm.unlink()
|
||||||
|
|
||||||
for detector in detectors:
|
for detector in detectors:
|
||||||
detector.stop()
|
detector.stop()
|
||||||
for shm in camera_shms:
|
for shm in camera_shms:
|
||||||
|
Loading…
Reference in New Issue
Block a user