Fix assertion failure after early build setup failure

This commit is contained in:
Eelco Dolstra 2016-09-08 17:29:50 +02:00
parent a5f2750ebb
commit 0babc4ff31

View file

@ -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);