This commit is contained in:
Eugene Zhuravlev
2010-10-07 10:21:55 +04:00
parent d21e27c459
commit ccc57df398
@@ -77,14 +77,15 @@ public class ShutDownTracker implements Runnable {
LOG.error(e);
}
}
for (Thread thread = myShutdownThreads.removeLast(); thread != null; thread = myShutdownThreads.removeLast()) {
thread.start();
try {
thread.join();
}
catch (InterruptedException ignored) {
if (!myShutdownThreads.isEmpty()) {
for (Thread thread = myShutdownThreads.removeLast(); thread != null; thread = myShutdownThreads.removeLast()) {
thread.start();
try {
thread.join();
}
catch (InterruptedException ignored) {
}
}
}
}