diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2016-09-08 17:29:50 +0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2016-09-08 17:29:50 +0200 |
commit | 0babc4ff317bcf1a130790d7ee290b1ebc4ec842 (patch) | |
tree | 0ba3135f72cf0bab9ceab970ea141eeb53c4d939 /src/libstore/build.cc | |
parent | a5f2750ebb1fb59679079139810e48b53abc51de (diff) |
Fix assertion failure after early build setup failure
Diffstat (limited to 'src/libstore/build.cc')
-rw-r--r-- | src/libstore/build.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/build.cc b/src/libstore/build.cc index e0eb702a4..1c9815a87 100644 --- a/src/libstore/build.cc +++ b/src/libstore/build.cc @@ -3466,7 +3466,7 @@ void Worker::childTerminated(Goal * goal, bool wakeSleepers) { auto i = std::find_if(children.begin(), children.end(), [&](const Child & child) { return child.goal2 == goal; }); - assert(i != children.end()); + if (i == children.end()) return; if (i->inBuildSlot) { assert(nrLocalBuilds > 0); |