From 0babc4ff317bcf1a130790d7ee290b1ebc4ec842 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 8 Sep 2016 17:29:50 +0200 Subject: [PATCH] Fix assertion failure after early build setup failure --- src/libstore/build.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);