aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/libstore/pathlocks.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libstore/pathlocks.cc b/src/libstore/pathlocks.cc
index 559737992..bf7ad3d21 100644
--- a/src/libstore/pathlocks.cc
+++ b/src/libstore/pathlocks.cc
@@ -136,6 +136,7 @@ bool PathLocks::lockPaths(const PathSet & _paths,
/* Failed to lock this path; release all other
locks. */
unlock();
+ lockedPaths_.lock()->erase(lockPath);
return false;
}
}