Optionally skip shutdown wait
This commit is contained in:
parent
30c74a6ab4
commit
887d95f2c2
@ -210,7 +210,9 @@ public final class ResponseReceiver extends Thread implements AutoCloseable {
|
||||
public void onJVMShutdown() throws InterruptedException {
|
||||
if (startCalled.get()) {
|
||||
if (this.jvmShutdown.compareAndSet(false, true)) {
|
||||
this.closeWait.await();
|
||||
if (Boolean.parseBoolean(System.getProperty("it.tdlight.pauseShutdownUntilAllClosed", "true"))) {
|
||||
this.closeWait.await();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user