From e7fa46561682bdbec5a46f7eba70a61ca9701266 Mon Sep 17 00:00:00 2001 From: Andrei Mikhalevich Date: Thu, 12 Mar 2020 11:07:30 -0400 Subject: [PATCH] DIspose semaphore in MqttChannelAdapter --- Source/MQTTnet/Adapter/MqttChannelAdapter.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/MQTTnet/Adapter/MqttChannelAdapter.cs b/Source/MQTTnet/Adapter/MqttChannelAdapter.cs index 4a0a85d..81394da 100644 --- a/Source/MQTTnet/Adapter/MqttChannelAdapter.cs +++ b/Source/MQTTnet/Adapter/MqttChannelAdapter.cs @@ -274,6 +274,7 @@ namespace MQTTnet.Adapter _isDisposed = true; _channel?.Dispose(); + _writerSemaphore?.Dispose(); } private void ThrowIfDisposed()