1
0
Fork 0
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:
James Blackburn 2009-11-30 20:07:28 +00:00
parent 32bbacaf36
commit b224735385

View file

@ -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;
}