Null out static runner field when shutting down.
This commit is contained in:
parent
2a7fa165ec
commit
65115dfa9a
1 changed files with 3 additions and 1 deletions
|
@ -157,6 +157,7 @@ public class Logging extends LogFactory {
|
|||
public static void shutdown() {
|
||||
if (runner != null && runner.isAlive()) {
|
||||
runner.interrupt();
|
||||
runner = null;
|
||||
Thread.yield();
|
||||
}
|
||||
|
||||
|
@ -261,9 +262,10 @@ public class Logging extends LogFactory {
|
|||
try {
|
||||
wait(250);
|
||||
} catch (InterruptedException ix) {
|
||||
return;
|
||||
break;
|
||||
}
|
||||
}
|
||||
runner = null;
|
||||
}
|
||||
|
||||
public synchronized void wakeup() {
|
||||
|
|
Loading…
Add table
Reference in a new issue