diff --git a/src/libstore/build/goal.cc b/src/libstore/build/goal.cc index 8e2b6199a0b..92437040cbe 100644 --- a/src/libstore/build/goal.cc +++ b/src/libstore/build/goal.cc @@ -219,7 +219,7 @@ Goal::Done Goal::amDone(ExitCode result, std::optional ex) /* If we failed and keepGoing is not set, we remove all remaining waitees. */ for (auto & g : goal->waitees) { - g->waiters.extract(goal); + g->waiters.erase(goal); } goal->waitees.clear();