Fixed missed clean session for ClientSession, issue #145
This commit is contained in:
@@ -55,7 +55,7 @@ public class ClientSession {
|
||||
|
||||
private Set<Subscription> subscriptions = new HashSet<>();
|
||||
|
||||
public final boolean cleanSession;
|
||||
private volatile boolean cleanSession;
|
||||
|
||||
private boolean active = false;
|
||||
|
||||
@@ -146,6 +146,11 @@ public class ClientSession {
|
||||
return this.cleanSession;
|
||||
}
|
||||
|
||||
public void cleanSession(boolean cleanSession) {
|
||||
this.cleanSession = cleanSession;
|
||||
this.m_sessionsStore.updateCleanStatus(this.clientID, cleanSession);
|
||||
}
|
||||
|
||||
public void activate() {
|
||||
this.active = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user