From 7b5d35ff25053f1ca4f0120d73b913cc1d832fe5 Mon Sep 17 00:00:00 2001 From: Aikar Date: Wed, 1 Jul 2020 03:32:26 -0400 Subject: [PATCH] Fix server not stopping when eula not agreed yet --- .../Improve-Server-Thread-Pool-and-Thread-Priorities.patch | 1 + 1 file changed, 1 insertion(+) diff --git a/Spigot-Server-Patches/Improve-Server-Thread-Pool-and-Thread-Priorities.patch b/Spigot-Server-Patches/Improve-Server-Thread-Pool-and-Thread-Priorities.patch index 363735867..233db2a9e 100644 --- a/Spigot-Server-Patches/Improve-Server-Thread-Pool-and-Thread-Priorities.patch +++ b/Spigot-Server-Patches/Improve-Server-Thread-Pool-and-Thread-Priorities.patch @@ -40,6 +40,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 + super(target, "Server-Worker-" + threadId.getAndIncrement()); + setPriority(Thread.NORM_PRIORITY-1); // Deprioritize over main + this.setUncaughtExceptionHandler((thread, throwable) -> { ++ thread.setDaemon(true); + if (throwable instanceof CompletionException) { + throwable = throwable.getCause(); + }