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(); + }