Treat a connection handover as a clean disconnect.

This commit is contained in:
Christian
2018-05-03 20:29:53 +02:00
parent 9fdcb08364
commit d9501de252
4 changed files with 30 additions and 19 deletions
@@ -128,7 +128,7 @@ namespace MQTTnet.Server
if (!cancellationToken.IsCancellationRequested)
{
await _clientSession.StopAsync().ConfigureAwait(false);
await _clientSession.StopAsync(MqttClientDisconnectType.NotClean).ConfigureAwait(false);
}
}
}