Increasing shutdown time limit
This commit is contained in:
parent
561e3784c9
commit
0c8505293d
|
@ -131,7 +131,7 @@ public class SimpleAuth implements DedicatedServerModInitializer {
|
||||||
// Closing threads
|
// Closing threads
|
||||||
try {
|
try {
|
||||||
THREADPOOL.shutdownNow();
|
THREADPOOL.shutdownNow();
|
||||||
if (!THREADPOOL.awaitTermination(100, TimeUnit.MICROSECONDS)) {
|
if (!THREADPOOL.awaitTermination(500, TimeUnit.MILLISECONDS)) {
|
||||||
Thread.currentThread().interrupt();
|
Thread.currentThread().interrupt();
|
||||||
}
|
}
|
||||||
} catch (InterruptedException e) {
|
} catch (InterruptedException e) {
|
||||||
|
|
Loading…
Reference in New Issue