Browse Source

fixed incorrect merge

release/3.x.x
Eggers Jan 7 years ago
parent
commit
196a325f7f
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      MQTTnet.Core/Client/MqttPacketDispatcher.cs

+ 2
- 2
MQTTnet.Core/Client/MqttPacketDispatcher.cs View File

@@ -44,13 +44,13 @@ namespace MQTTnet.Core.Client
{ {
if (_packetByIdentifier.TryRemove(withIdentifier.PacketIdentifier, out var tcs)) if (_packetByIdentifier.TryRemove(withIdentifier.PacketIdentifier, out var tcs))
{ {
packetAwaiter.TrySetResult(packet);
tcs.TrySetResult(packet);
packetDispatched = true; packetDispatched = true;
} }
} }
else if (_packetByResponseType.TryRemove(packet.GetType(), out var tcs) ) else if (_packetByResponseType.TryRemove(packet.GetType(), out var tcs) )
{ {
tcs.SetResult(packet);
tcs.TrySetResult( packet);
packetDispatched = true; packetDispatched = true;
} }




Loading…
Cancel
Save