// when the OSGi runtime is shut down
try {
Thread.sleep(100);
- if (display.isDisposed()) {
- log.warn("Display is disposed, killing login dialog thread");
- throw new ThreadDeath();
- }
+ // if (display.isDisposed()) {
+ // log.warn("Display is disposed, killing login dialog thread");
+ // throw new ThreadDeath();
+ // }
} catch (final Exception e) {
// do nothing
}
}, true, new NullProgressMonitor(), Display.getDefault());
} catch (ThreadDeath e) {
isCancelled = true;
+ log.debug("Thread " + Thread.currentThread().getId() + " died");
throw e;
} catch (Exception e) {
isCancelled = true;
} finally {
// so that the modal thread dies
processCallbacks = true;
- try {
- // wait for the modal context thread to gracefully exit
- modalContextThread.join(1000);
- } catch (InterruptedException ie) {
- // silent
- }
+ // try {
+ // // wait for the modal context thread to gracefully exit
+ // modalContextThread.join();
+ // } catch (InterruptedException ie) {
+ // // silent
+ // }
modalContextThread = null;
}
}