Fixed missed clean session for ClientSession, issue #145

This commit is contained in:
andsel
2016-02-02 22:39:11 +01:00
parent d36de24349
commit 5c7e2b357f
7 changed files with 54 additions and 2 deletions
@@ -125,6 +125,11 @@ public class MemorySessionStore implements ISessionsStore {
return new ClientSession(clientID, m_messagesStore, this, storedSession.cleanSession);
}
@Override
public void updateCleanStatus(String clientID, boolean cleanSession) {
m_persistentSessions.put(clientID, new MapDBPersistentStore.PersistentSession(cleanSession));
}
@Override
public List<ClientTopicCouple> listAllSubscriptions() {
List<ClientTopicCouple> allSubscriptions = new ArrayList<>();