mirror of
https://github.com/PaperMC/Paper.git
synced 2025-02-17 02:34:30 +01:00
Fix shutdown on eula not being agreed (Fixes #4647)
This commit is contained in:
parent
e32b8cfddb
commit
3bc3b61ce3
1 changed files with 1 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue