Commit eec4f5a403ead93b595ac9ab161e9b0746d7a06e

Authored by vzikratyi
Committed by Andrew Shvayka
1 parent 8769fe3a

Removed unnecessary retain of PUBLISH message for QoS 2

@@ -200,7 +200,6 @@ final class MqttChannelHandler extends SimpleChannelInboundHandler<MqttMessage> @@ -200,7 +200,6 @@ final class MqttChannelHandler extends SimpleChannelInboundHandler<MqttMessage>
200 200
201 MqttIncomingQos2Publish incomingQos2Publish = new MqttIncomingQos2Publish(message); 201 MqttIncomingQos2Publish incomingQos2Publish = new MqttIncomingQos2Publish(message);
202 this.client.getQos2PendingIncomingPublishes().put(message.variableHeader().packetId(), incomingQos2Publish); 202 this.client.getQos2PendingIncomingPublishes().put(message.variableHeader().packetId(), incomingQos2Publish);
203 - message.payload().retain();  
204 203
205 channel.writeAndFlush(pubrecMessage); 204 channel.writeAndFlush(pubrecMessage);
206 } 205 }