mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-27 08:42:37 +08:00
Fix wrong IsSessionPresent flag.
This commit is contained in:
@@ -138,7 +138,7 @@ namespace MQTTnet.Server
|
|||||||
{
|
{
|
||||||
ReturnCode = MqttConnectReturnCode.ConnectionAccepted,
|
ReturnCode = MqttConnectReturnCode.ConnectionAccepted,
|
||||||
ReasonCode = MqttConnectReasonCode.Success,
|
ReasonCode = MqttConnectReasonCode.Success,
|
||||||
IsSessionPresent = Session.IsCleanSession
|
IsSessionPresent = !Session.IsCleanSession
|
||||||
}).ConfigureAwait(false);
|
}).ConfigureAwait(false);
|
||||||
|
|
||||||
Session.IsCleanSession = false;
|
Session.IsCleanSession = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user