Explorar o código

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

Thomas Waldmann %!s(int64=2) %!d(string=hai) anos
pai
achega
c3d0c525f9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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: