瀏覽代碼

Clear awaiters after an exception has occured.

release/3.x.x
Christian Kratky 6 年之前
父節點
當前提交
1d455221e4
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. +2
    -0
      Frameworks/MQTTnet.NetStandard/Client/MqttPacketDispatcher.cs

+ 2
- 0
Frameworks/MQTTnet.NetStandard/Client/MqttPacketDispatcher.cs 查看文件

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


Loading…
取消
儲存