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:
Eelco Dolstra
2017-01-26 20:40:33 +01:00
parent 83ae6503e8
commit b1f001538e
+1
View File
@@ -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;
}
}