Fixed drop messages in clean session phase, introduced ref counter

This commit is contained in:
andsel
2016-09-23 09:45:47 +02:00
parent 5efad350d8
commit 4d637a349b
6 changed files with 99 additions and 6 deletions
@@ -400,7 +400,7 @@ public class ProtocolProcessor {
LOG.info("server {} replying with PubAck to MSG ID {}", m_server_port, messageID);
} else if (qos == AbstractMessage.QOSType.EXACTLY_ONCE) { //QoS2
guid = m_messagesStore.storePublishForFuture(toStoreMsg);
if(msg.isLocal()) {
if (msg.isLocal()) {
sendPubRec(clientID, messageID);
}
//Next the client will send us a pub rel