about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2016-09-08T15·29+0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2016-09-08T15·29+0200
commit0babc4ff317bcf1a130790d7ee290b1ebc4ec842 (patch)
tree0ba3135f72cf0bab9ceab970ea141eeb53c4d939 /src
parenta5f2750ebb1fb59679079139810e48b53abc51de (diff)
Fix assertion failure after early build setup failure
Diffstat (limited to 'src')
-rw-r--r--src/libstore/build.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/build.cc b/src/libstore/build.cc
index e0eb702a4f82..1c9815a87bf6 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);