mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-20 19:58:57 +08:00
use same lockobject everywhere to prevent raceconditions
This commit is contained in:
@@ -71,7 +71,7 @@ namespace MQTTnet.Core.Client
|
||||
|
||||
private List<MqttPacketAwaiter> GetPacketAwaiters()
|
||||
{
|
||||
lock (_packetAwaiters)
|
||||
lock (_syncRoot)
|
||||
{
|
||||
return new List<MqttPacketAwaiter>(_packetAwaiters);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user