fixed incorrect merge

This commit is contained in:
Eggers Jan
2017-09-12 08:23:50 +02:00
parent da70dc0565
commit 196a325f7f
+2 -2
View File
@@ -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;
}