aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/build.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstore/build.cc')
-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 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);