1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Further simplification of PDOMManager.joinIndexer method.

This commit is contained in:
Sergey Prigogin 2012-08-19 19:24:44 -07:00
parent ffe717ed93
commit e3e7ee663c

View file

@ -1097,8 +1097,7 @@ public class PDOMManager implements IWritableIndexManager, IListener {
@Override
public void done(IJobChangeEvent event) {
synchronized (idleCondition) {
Job[] jobs = Job.getJobManager().find(PDOMManager.this);
if (jobs.length == 0 || jobs.length == 1 && event.getJob() == jobs[0]) {
if (Job.getJobManager().find(PDOMManager.this).length == 0) {
idleCondition[0] = true;
idleCondition.notifyAll();
}