This closes #1873
This commit is contained in:
commit
2180dc3b99
|
@ -76,6 +76,7 @@ public class MQTTConnectionManager {
|
||||||
|
|
||||||
session.setSessionState(getSessionState(clientId));
|
session.setSessionState(getSessionState(clientId));
|
||||||
String password = passwordInBytes == null ? null : new String(passwordInBytes, CharsetUtil.UTF_8);
|
String password = passwordInBytes == null ? null : new String(passwordInBytes, CharsetUtil.UTF_8);
|
||||||
|
session.getConnection().setClientID(clientId);
|
||||||
ServerSessionImpl serverSession = createServerSession(username, password);
|
ServerSessionImpl serverSession = createServerSession(username, password);
|
||||||
serverSession.start();
|
serverSession.start();
|
||||||
|
|
||||||
|
@ -93,7 +94,6 @@ public class MQTTConnectionManager {
|
||||||
|
|
||||||
session.getConnection().setConnected(true);
|
session.getConnection().setConnected(true);
|
||||||
session.start();
|
session.start();
|
||||||
session.getConnection().setClientID(clientId);
|
|
||||||
session.getProtocolHandler().sendConnack(MqttConnectReturnCode.CONNECTION_ACCEPTED);
|
session.getProtocolHandler().sendConnack(MqttConnectReturnCode.CONNECTION_ACCEPTED);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue