mirror of
https://github.com/Minestom/Minestom.git
synced 2025-03-09 13:19:05 +01:00
Do not wait for worker thread shutdown
This commit is contained in:
parent
4939387007
commit
5576d11fce
@ -232,8 +232,8 @@ public final class NettyServer {
|
|||||||
public void stop() {
|
public void stop() {
|
||||||
try {
|
try {
|
||||||
this.serverChannel.close().sync();
|
this.serverChannel.close().sync();
|
||||||
this.worker.shutdownGracefully().await();
|
this.worker.shutdownGracefully();
|
||||||
this.boss.shutdownGracefully().await();
|
this.boss.shutdownGracefully();
|
||||||
} catch (InterruptedException e) {
|
} catch (InterruptedException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user