mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-18 02:13:00 +08:00
Added missing ConfigureAwaits
This commit is contained in:
@@ -56,11 +56,11 @@ namespace MQTTnet.Core.Serializer
|
||||
Write(value);
|
||||
}
|
||||
|
||||
public static void BuildLengthHeader(int length, List<byte> header)
|
||||
public static void WriteRemainingLength(int length, List<byte> target)
|
||||
{
|
||||
if (length == 0)
|
||||
{
|
||||
header.Add(0);
|
||||
target.Add(0);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -75,7 +75,7 @@ namespace MQTTnet.Core.Serializer
|
||||
encodedByte = encodedByte | 128;
|
||||
}
|
||||
|
||||
header.Add((byte)encodedByte);
|
||||
target.Add((byte)encodedByte);
|
||||
} while (x > 0);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user