Fix server not stopping when eula not agreed yet

This commit is contained in:
Aikar 2020-07-01 03:32:26 -04:00
parent 438da20dd5
commit 7b5d35ff25

View File

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