From 107e96ff7dfbd8ab0a8932e0a7f8ac3a7ea5fbe8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20B=C3=A4urle?= Date: Mon, 7 Jan 2019 11:54:10 +0100 Subject: [PATCH] Don't cancel token before stop session manager --- Source/MQTTnet/Server/MqttServer.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) {