Added missing ConfigureAwaits

This commit is contained in:
Christian Kratky
2017-11-08 18:44:36 +01:00
parent 0b002e8d11
commit 7dfc19e588
9 changed files with 47 additions and 34 deletions
+3 -3
View File
@@ -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);
}
}