Minor changes

This commit is contained in:
andsel
2018-11-08 22:28:29 +01:00
parent e10619813a
commit dd8bad7480
3 changed files with 15 additions and 18 deletions
@@ -37,9 +37,7 @@ public class MoquetteIdleTimeoutHandler extends ChannelDuplexHandler {
IdleState e = ((IdleStateEvent) evt).state();
if (e == IdleState.READER_IDLE) {
LOG.info("Firing channel inactive event. MqttClientId = {}.", NettyUtils.clientID(ctx.channel()));
// fire a channelInactive to trigger publish of Will
//??
// ctx.fireChannelInactive();
// fire a close that then fire channelInactive to trigger publish of Will
ctx.close().addListener(CLOSE_ON_FAILURE);
}
} else {