Skip to content

Commit 494f9ae

Browse files
author
Tim Vaillancourt
committed
set _lock to None on release
1 parent 90c18b5 commit 494f9ae

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

MongoBackup/Common/Lock.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,5 @@ def release(self):
2727
if self._lock:
2828
logging.debug("Releasing exclusive lock on file: %s" % self.lock_file)
2929
self._lock.close()
30+
self._lock = None
3031
return os.remove(self.lock_file)

0 commit comments

Comments
 (0)