From 0c8505293d92034b5eac7a03644ff45a56a2aa22 Mon Sep 17 00:00:00 2001 From: samo_lego <34912839+samolego@users.noreply.github.com> Date: Sat, 17 Oct 2020 21:18:48 +0200 Subject: [PATCH] Increasing shutdown time limit --- src/main/java/org/samo_lego/simpleauth/SimpleAuth.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/samo_lego/simpleauth/SimpleAuth.java b/src/main/java/org/samo_lego/simpleauth/SimpleAuth.java index 072adb6..37a0e2f 100644 --- a/src/main/java/org/samo_lego/simpleauth/SimpleAuth.java +++ b/src/main/java/org/samo_lego/simpleauth/SimpleAuth.java @@ -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) {