forked from OctaForge/OctaBuild
wait for remaining build tasks to finish
parent
3a3f417181
commit
31eafed8d2
18
main.cc
18
main.cc
|
@ -157,10 +157,20 @@ struct ob_state: cs_state {
|
||||||
throw;
|
throw;
|
||||||
}
|
}
|
||||||
waiting.pop();
|
waiting.pop();
|
||||||
while (!waits.empty()) {
|
for (; !waits.empty(); waits.pop()) {
|
||||||
/* TODO: wait for unfinished tasks */
|
try {
|
||||||
waits.front().get();
|
waits.front().get();
|
||||||
waits.pop();
|
} catch (build_error const &) {
|
||||||
|
waits.pop();
|
||||||
|
for (; !waits.empty(); waits.pop()) {
|
||||||
|
try {
|
||||||
|
waits.front().get();
|
||||||
|
} catch (build_error const &) {
|
||||||
|
/* no rethrow */
|
||||||
|
}
|
||||||
|
}
|
||||||
|
throw;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue