mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-09 01:47:54 +01:00
Cleanup netty shutdown
This commit is contained in:
parent
250ec081ae
commit
b9527c4909
@ -263,13 +263,8 @@ public final class NettyServer {
|
||||
* Stops the server and the various services.
|
||||
*/
|
||||
public void stop() {
|
||||
try {
|
||||
this.serverChannel.close().sync();
|
||||
this.worker.shutdownGracefully();
|
||||
this.boss.shutdownGracefully();
|
||||
} catch (InterruptedException e) {
|
||||
MinecraftServer.getExceptionManager().handleException(e);
|
||||
}
|
||||
this.worker.shutdownGracefully();
|
||||
this.boss.shutdownGracefully();
|
||||
|
||||
this.trafficScheduler.shutdown();
|
||||
this.globalTrafficHandler.release();
|
||||
|
Loading…
Reference in New Issue
Block a user