Skip to content

Commit

Permalink
Don't fail on cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
NickM-27 committed Jul 9, 2024
1 parent f7a9cb8 commit 438b50a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions frigate/util/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -725,10 +725,9 @@ def delete(self, name: str):

del self.shm_store[name]
else:
shm = shared_memory.SharedMemory(name=name)
shm.close()

try:
shm = shared_memory.SharedMemory(name=name)
shm.close()
shm.unlink()
except FileNotFoundError:
pass
Expand Down

0 comments on commit 438b50a

Please sign in to comment.