Increasing shutdown time limit

This commit is contained in:
samo_lego 2020-10-17 21:18:48 +02:00
parent 561e3784c9
commit 0c8505293d
1 changed files with 1 additions and 1 deletions

View File

@ -131,7 +131,7 @@ public class SimpleAuth implements DedicatedServerModInitializer {
// Closing threads
try {
THREADPOOL.shutdownNow();
if (!THREADPOOL.awaitTermination(100, TimeUnit.MICROSECONDS)) {
if (!THREADPOOL.awaitTermination(500, TimeUnit.MILLISECONDS)) {
Thread.currentThread().interrupt();
}
} catch (InterruptedException e) {