From 196a325f7f89f46129c9297ec78ef9458b9fdba9 Mon Sep 17 00:00:00 2001 From: Eggers Jan Date: Tue, 12 Sep 2017 08:23:50 +0200 Subject: [PATCH] fixed incorrect merge --- MQTTnet.Core/Client/MqttPacketDispatcher.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MQTTnet.Core/Client/MqttPacketDispatcher.cs b/MQTTnet.Core/Client/MqttPacketDispatcher.cs index ffbacab..f057b97 100644 --- a/MQTTnet.Core/Client/MqttPacketDispatcher.cs +++ b/MQTTnet.Core/Client/MqttPacketDispatcher.cs @@ -44,13 +44,13 @@ namespace MQTTnet.Core.Client { if (_packetByIdentifier.TryRemove(withIdentifier.PacketIdentifier, out var tcs)) { - packetAwaiter.TrySetResult(packet); + tcs.TrySetResult(packet); packetDispatched = true; } } else if (_packetByResponseType.TryRemove(packet.GetType(), out var tcs) ) { - tcs.SetResult(packet); + tcs.TrySetResult( packet); packetDispatched = true; }