浏览代码

locking: get out of kill_stale_lock more quickly if directory does not exist.

Thomas Waldmann 2 年之前
父节点
当前提交
c3d0c525f9
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/borg/locking.py

+ 1 - 1
src/borg/locking.py

@@ -195,7 +195,7 @@ class ExclusiveLock:
         try:
             names = os.listdir(self.path)
         except FileNotFoundError:  # another process did our job in the meantime.
-            pass
+            return False
         except PermissionError:  # win32 might throw this.
             return False
         else: