mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-28 17:22:37 +08:00
fixed incorrect merge
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user