Fixed NPE exception of inflight ACK because the publisher with clean=true removed all messages, also the published from message store

This commit is contained in:
andsel
2017-01-04 11:17:30 +01:00
parent 2c43c74fe3
commit 480e36579c
4 changed files with 15 additions and 11 deletions
@@ -227,9 +227,6 @@ class MapDBSessionsStore implements ISessionsStore {
List<MessageGUID> guids = Utils.defaultGet(m_enqueuedStore, clientID, new ArrayList<MessageGUID>());
guids.remove(guid);
m_enqueuedStore.put(clientID, guids);
m_messagesStore.decUsageCounter(guid);
//if counter gets to 0 then remove from storage
m_messagesStore.removeStoredMessage(guid);
}
@Override