From 3bc3b61ce38c7e6f9743b464f4e9995fc59f8437 Mon Sep 17 00:00:00 2001 From: Shane Freeder Date: Wed, 1 Jul 2020 12:21:57 +0100 Subject: [PATCH] Fix shutdown on eula not being agreed (Fixes #4647) --- .../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 233db2a9e..7ae15efb7 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 @@ -39,6 +39,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 + public ServerWorkerThread(Runnable target) { + super(target, "Server-Worker-" + threadId.getAndIncrement()); + setPriority(Thread.NORM_PRIORITY-1); // Deprioritize over main ++ this.setDaemon(true); + this.setUncaughtExceptionHandler((thread, throwable) -> { + thread.setDaemon(true); + if (throwable instanceof CompletionException) {