Skip to content

Commit

Permalink
ref: Remove semaphore file once app terminates (#209)
Browse files Browse the repository at this point in the history
  • Loading branch information
cstromblad committed Apr 28, 2024
1 parent ad5a3d5 commit ed06caa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions streamdeck_ui/semaphore.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ def __exit__(self, exc_type, exc_value, traceback):
# release the semaphore
fcntl.flock(self.semaphore_fd, fcntl.LOCK_UN)

# remove semaphore file
os.remove(self.semaphore_file)

# close the file descriptor
os.close(self.semaphore_fd)

Expand Down

0 comments on commit ed06caa

Please sign in to comment.