597598599600601602603604605606607608609610
((ServiceInfoImpl) iterator.next()).cancel(); } final Object lock = new Object(); Canceler c = new Canceler(this, list, lock); c.start(timer); while (!c.hasFinished()) { try { Thread.sleep(100); } catch (InterruptedException e) { } }