Cleanup netty shutdown

This commit is contained in:
themode 2021-03-27 20:45:18 +01:00
parent 250ec081ae
commit b9527c4909

View File

@ -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();