mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-23 17:05:26 +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();
|
IWorkspaceDescription desc = root.getWorkspace().getDescription();
|
||||||
desc.setAutoBuilding(isAutoBuilding);
|
desc.setAutoBuilding(isAutoBuilding);
|
||||||
root.getWorkspace().setDescription(desc);
|
root.getWorkspace().setDescription(desc);
|
||||||
}
|
|
||||||
|
|
||||||
// Wait for any outstanding jobs to finish
|
// Wait for any outstanding jobs to finish
|
||||||
while (!Job.getJobManager().isIdle())
|
while (!Job.getJobManager().isIdle())
|
||||||
Thread.sleep(10);
|
Thread.sleep(10);
|
||||||
|
}
|
||||||
|
|
||||||
return OK;
|
return OK;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue