MqttTransportService NioEventLoopGroup shutdown order error

This commit is contained in:
liuyuan 2018-05-17 18:27:26 +08:00
parent 15f53ee899
commit 96a77fc2ea

View File

@ -119,8 +119,8 @@ public class MqttTransportService {
try { try {
serverChannel.close().sync(); serverChannel.close().sync();
} finally { } finally {
bossGroup.shutdownGracefully();
workerGroup.shutdownGracefully(); workerGroup.shutdownGracefully();
bossGroup.shutdownGracefully();
} }
log.info("MQTT transport stopped!"); log.info("MQTT transport stopped!");
} }