ARTEMIS-1243 Release ReferenceCounted messages
This commit is contained in:
parent
7583ff7172
commit
eaadc24729
|
@ -39,6 +39,7 @@ import io.netty.handler.codec.mqtt.MqttSubAckPayload;
|
||||||
import io.netty.handler.codec.mqtt.MqttSubscribeMessage;
|
import io.netty.handler.codec.mqtt.MqttSubscribeMessage;
|
||||||
import io.netty.handler.codec.mqtt.MqttUnsubAckMessage;
|
import io.netty.handler.codec.mqtt.MqttUnsubAckMessage;
|
||||||
import io.netty.handler.codec.mqtt.MqttUnsubscribeMessage;
|
import io.netty.handler.codec.mqtt.MqttUnsubscribeMessage;
|
||||||
|
import io.netty.util.ReferenceCountUtil;
|
||||||
import org.apache.activemq.artemis.api.core.RoutingType;
|
import org.apache.activemq.artemis.api.core.RoutingType;
|
||||||
import org.apache.activemq.artemis.api.core.SimpleString;
|
import org.apache.activemq.artemis.api.core.SimpleString;
|
||||||
import org.apache.activemq.artemis.core.server.ActiveMQServer;
|
import org.apache.activemq.artemis.core.server.ActiveMQServer;
|
||||||
|
@ -155,6 +156,8 @@ public class MQTTProtocolHandler extends ChannelInboundHandlerAdapter {
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
log.debug("Error processing Control Packet, Disconnecting Client", e);
|
log.debug("Error processing Control Packet, Disconnecting Client", e);
|
||||||
disconnect(true);
|
disconnect(true);
|
||||||
|
} finally {
|
||||||
|
ReferenceCountUtil.release(msg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue