Skip to content

Commit 58c74a8

Browse files
lutzfischerz3rone
andauthored
cleanup _allActiveLocks on _cleanup_locks() as well
Co-authored-by: Falk B. Schimweg <fb1@schimweg.de>
1 parent 1b33eb4 commit 58c74a8

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

dirlock/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ def _clean_locks():
3232
locks_to_release = list(_allActiveLocks)
3333
for dl in locks_to_release:
3434
dl.release()
35+
_allActiveLocks.remove(dl)
3536

3637

3738
def handle_sigint_cleanup(signum, frame):

0 commit comments

Comments
 (0)