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;
|
||||
}
|
||||
waiting.pop();
|
||||
while (!waits.empty()) {
|
||||
/* TODO: wait for unfinished tasks */
|
||||
waits.front().get();
|
||||
waits.pop();
|
||||
for (; !waits.empty(); waits.pop()) {
|
||||
try {
|
||||
waits.front().get();
|
||||
} 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