Removed unuseful sessionStolen attribute from channel

This commit is contained in:
andsel
2016-11-27 21:35:20 +01:00
parent 9a7e643742
commit 3ac692a7c7
3 changed files with 5 additions and 19 deletions
@@ -90,14 +90,7 @@ public class NettyMQTTHandler extends ChannelInboundHandlerAdapter {
public void channelInactive(ChannelHandlerContext ctx) throws Exception {
String clientID = NettyUtils.clientID(ctx.channel());
if (clientID != null && !clientID.isEmpty()) {
//if the channel was of a correctly connected client, inform messaging
//else it was of a not completed CONNECT message or sessionStolen
boolean stolen = false;
Boolean stolenAttr = NettyUtils.sessionStolen(ctx.channel());
if (stolenAttr != null && stolenAttr == Boolean.TRUE) {
stolen = true;
}
m_processor.processConnectionLost(clientID, stolen, ctx.channel());
m_processor.processConnectionLost(clientID, ctx.channel());
}
ctx.close();
}