瀏覽代碼

use same lockobject everywhere to prevent raceconditions

release/3.x.x
JanEggers 7 年之前
父節點
當前提交
80a6e6809c
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      MQTTnet.Core/Client/MqttPacketDispatcher.cs

+ 1
- 1
MQTTnet.Core/Client/MqttPacketDispatcher.cs 查看文件

@@ -71,7 +71,7 @@ namespace MQTTnet.Core.Client

private List<MqttPacketAwaiter> GetPacketAwaiters()
{
lock (_packetAwaiters)
lock (_syncRoot)
{
return new List<MqttPacketAwaiter>(_packetAwaiters);
}


Loading…
取消
儲存