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) {
|
+ public ServerWorkerThread(Runnable target) {
|
||||||
+ super(target, "Server-Worker-" + threadId.getAndIncrement());
|
+ super(target, "Server-Worker-" + threadId.getAndIncrement());
|
||||||
+ setPriority(Thread.NORM_PRIORITY-1); // Deprioritize over main
|
+ setPriority(Thread.NORM_PRIORITY-1); // Deprioritize over main
|
||||||
|
+ this.setDaemon(true);
|
||||||
+ this.setUncaughtExceptionHandler((thread, throwable) -> {
|
+ this.setUncaughtExceptionHandler((thread, throwable) -> {
|
||||||
+ thread.setDaemon(true);
|
+ thread.setDaemon(true);
|
||||||
+ if (throwable instanceof CompletionException) {
|
+ if (throwable instanceof CompletionException) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue