mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-25 01:21:20 +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.
|
* Stops the server and the various services.
|
||||||
*/
|
*/
|
||||||
public void stop() {
|
public void stop() {
|
||||||
try {
|
|
||||||
this.serverChannel.close().sync();
|
|
||||||
this.worker.shutdownGracefully();
|
this.worker.shutdownGracefully();
|
||||||
this.boss.shutdownGracefully();
|
this.boss.shutdownGracefully();
|
||||||
} catch (InterruptedException e) {
|
|
||||||
MinecraftServer.getExceptionManager().handleException(e);
|
|
||||||
}
|
|
||||||
|
|
||||||
this.trafficScheduler.shutdown();
|
this.trafficScheduler.shutdown();
|
||||||
this.globalTrafficHandler.release();
|
this.globalTrafficHandler.release();
|
||||||
|
Loading…
Reference in New Issue
Block a user