Do not wait for worker thread shutdown

This commit is contained in:
Felix Cravic 2020-12-08 18:14:10 +01:00
parent 4939387007
commit 5576d11fce

View File

@ -232,8 +232,8 @@ public final class NettyServer {
public void stop() {
try {
this.serverChannel.close().sync();
this.worker.shutdownGracefully().await();
this.boss.shutdownGracefully().await();
this.worker.shutdownGracefully();
this.boss.shutdownGracefully();
} catch (InterruptedException e) {
e.printStackTrace();
}