diff --git a/MQTTnet.Core/Client/MqttPacketDispatcher.cs b/MQTTnet.Core/Client/MqttPacketDispatcher.cs index da8b1fa..aba050d 100644 --- a/MQTTnet.Core/Client/MqttPacketDispatcher.cs +++ b/MQTTnet.Core/Client/MqttPacketDispatcher.cs @@ -71,7 +71,7 @@ namespace MQTTnet.Core.Client private List GetPacketAwaiters() { - lock (_packetAwaiters) + lock (_syncRoot) { return new List(_packetAwaiters); }