Fix assertion failure when a path is locked
Fixes: nix-store: src/libstore/build.cc:3649: void nix::Worker::run(const Goals&): Assertion `!awake.empty()' failed.
This commit is contained in:
parent
83ae6503e8
commit
b1f001538e
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue