Sfoglia il codice sorgente

Clear awaiters after an exception has occured.

release/3.x.x
Christian Kratky 6 anni fa
parent
commit
1d455221e4
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. +2
    -0
      Frameworks/MQTTnet.NetStandard/Client/MqttPacketDispatcher.cs

+ 2
- 0
Frameworks/MQTTnet.NetStandard/Client/MqttPacketDispatcher.cs Vedi File

@@ -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)


Caricamento…
Annulla
Salva