mirror of
https://github.com/PaperMC/Paper.git
synced 2025-02-17 10:41:41 +01:00
Fix server not stopping when eula not agreed yet
This commit is contained in:
parent
438da20dd5
commit
7b5d35ff25
1 changed files with 1 additions and 0 deletions
|
@ -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();
|
||||
+ }
|
||||
|
|
Loading…
Add table
Reference in a new issue