This commit is contained in:
Lemon
2023-12-21 14:08:20 +08:00
parent 36c2832f63
commit b34eebe185

View File

@@ -66,7 +66,7 @@ public class NettyServer implements CommandLineRunner {
}
// 关闭channel和块直到它被关闭 (若取消注释,则 MQTT 服务器无法启动)
// future.channel().closeFuture().sync();
future.channel().closeFuture().sync();
} catch (Exception e) {
log.error("NettyServer.start error", e);
bossGroup.shutdownGracefully();