Pārlūkot izejas kodu

dont add the same package twice to _receivedPackets

release/3.x.x
JanEggers pirms 7 gadiem
vecāks
revīzija
861efa5e75
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. +1
    -1
      MQTTnet.Core/Client/MqttPacketDispatcher.cs

+ 1
- 1
MQTTnet.Core/Client/MqttPacketDispatcher.cs Parādīt failu

@@ -10,7 +10,7 @@ namespace MQTTnet.Core.Client
public class MqttPacketDispatcher
{
private readonly object _syncRoot = new object();
private readonly List<MqttBasePacket> _receivedPackets = new List<MqttBasePacket>();
private readonly HashSet<MqttBasePacket> _receivedPackets = new HashSet<MqttBasePacket>();
private readonly List<MqttPacketAwaiter> _packetAwaiters = new List<MqttPacketAwaiter>();

public async Task<MqttBasePacket> WaitForPacketAsync(Func<MqttBasePacket, bool> selector, TimeSpan timeout)


Notiek ielāde…
Atcelt
Saglabāt