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-25 13:42:07 +01:00
parent 83ae6503e8
commit b1f001538e
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE

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;
}
}