mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-12 22:25:24 +03:00
Catch error when shutting down
This commit is contained in:
parent
bdf217d176
commit
6d28286816
@ -724,7 +724,14 @@ class SharedMemoryFrameManager(FrameManager):
|
|||||||
frames = list(self.shm_store.keys())
|
frames = list(self.shm_store.keys())
|
||||||
for name in frames:
|
for name in frames:
|
||||||
self.shm_store[name].close()
|
self.shm_store[name].close()
|
||||||
self.shm_store[name].unlink()
|
|
||||||
|
try:
|
||||||
|
self.shm_store[name].unlink()
|
||||||
|
except FileNotFoundError:
|
||||||
|
logger.warning(
|
||||||
|
f"Frame {name} missing in SHM, this is expected when shutting down."
|
||||||
|
)
|
||||||
|
|
||||||
del self.shm_store[name]
|
del self.shm_store[name]
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user