Pārlūkot izejas kodu

Clear awaiters after an exception has occured.

release/3.x.x
Christian Kratky pirms 6 gadiem
vecāks
revīzija
1d455221e4
1 mainītis faili ar 2 papildinājumiem un 0 dzēšanām
  1. +2
    -0
      Frameworks/MQTTnet.NetStandard/Client/MqttPacketDispatcher.cs

+ 2
- 0
Frameworks/MQTTnet.NetStandard/Client/MqttPacketDispatcher.cs Parādīt failu

@@ -15,6 +15,8 @@ namespace MQTTnet.Client
{
Task.Run(() => awaiter.Value.TrySetException(exception)); // Task.Run fixes a dead lock. Without this the client only receives one message.
}

_awaiters.Clear();
}

public void Dispatch(MqttBasePacket packet)


Notiek ielāde…
Atcelt
Saglabāt