From 6c8f85afe9dc614c1d3aa02f2e935c0549182ddc Mon Sep 17 00:00:00 2001 From: JanEggers Date: Sat, 9 Sep 2017 02:48:13 +0200 Subject: [PATCH] fixed invalid operation exception --- MQTTnet.Core/Client/MqttPacketDispatcher.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MQTTnet.Core/Client/MqttPacketDispatcher.cs b/MQTTnet.Core/Client/MqttPacketDispatcher.cs index 0784e8a..befca59 100644 --- a/MQTTnet.Core/Client/MqttPacketDispatcher.cs +++ b/MQTTnet.Core/Client/MqttPacketDispatcher.cs @@ -41,7 +41,7 @@ namespace MQTTnet.Core.Client { if (packetAwaiter.PacketSelector(packet)) { - packetAwaiter.SetResult(packet); + packetAwaiter.TrySetResult(packet); packetDispatched = true; break; }