Null out static runner field when shutting down.

This commit is contained in:
hns 2004-10-20 15:37:39 +00:00
parent 2a7fa165ec
commit 65115dfa9a

View file

@ -157,6 +157,7 @@ public class Logging extends LogFactory {
public static void shutdown() { public static void shutdown() {
if (runner != null && runner.isAlive()) { if (runner != null && runner.isAlive()) {
runner.interrupt(); runner.interrupt();
runner = null;
Thread.yield(); Thread.yield();
} }
@ -261,9 +262,10 @@ public class Logging extends LogFactory {
try { try {
wait(250); wait(250);
} catch (InterruptedException ix) { } catch (InterruptedException ix) {
return; break;
} }
} }
runner = null;
} }
public synchronized void wakeup() { public synchronized void wakeup() {