mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-30 21:55:31 +02:00
Bug294190 Wait for concurrent Jobs -- move to finally
This commit is contained in:
parent
32bbacaf36
commit
b224735385
1 changed files with 4 additions and 4 deletions
|
@ -213,11 +213,11 @@ public class HeadlessBuilder implements IApplication {
|
|||
IWorkspaceDescription desc = root.getWorkspace().getDescription();
|
||||
desc.setAutoBuilding(isAutoBuilding);
|
||||
root.getWorkspace().setDescription(desc);
|
||||
}
|
||||
|
||||
// Wait for any outstanding jobs to finish
|
||||
while (!Job.getJobManager().isIdle())
|
||||
Thread.sleep(10);
|
||||
// Wait for any outstanding jobs to finish
|
||||
while (!Job.getJobManager().isIdle())
|
||||
Thread.sleep(10);
|
||||
}
|
||||
|
||||
return OK;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue