diff --git a/Source/MQTTnet/Server/MqttServer.cs b/Source/MQTTnet/Server/MqttServer.cs index 737d756..cb3e84e 100644 --- a/Source/MQTTnet/Server/MqttServer.cs +++ b/Source/MQTTnet/Server/MqttServer.cs @@ -120,10 +120,10 @@ namespace MQTTnet.Server { return; } - - _cancellationTokenSource.Cancel(false); _clientSessionsManager.Stop(); + + _cancellationTokenSource.Cancel(false); foreach (var adapter in _adapters) {