Преглед изворни кода

Merge pull request #274 from sebastienwarin/develop

Fix MqttProtocolVersion 3.1 client connection
release/3.x.x
Christian пре 6 година
committed by GitHub
родитељ
комит
44e5b2c2fd
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 измењених фајлова са 1 додато и 5 уклоњено
  1. +1
    -5
      Frameworks/MQTTnet.NetStandard/Serializer/MqttPacketSerializer.cs

+ 1
- 5
Frameworks/MQTTnet.NetStandard/Serializer/MqttPacketSerializer.cs Прегледај датотеку

@@ -205,11 +205,7 @@ namespace MQTTnet.Serializer
}
else
{
var buffer = new byte[6];
Array.Copy(protocolName, buffer, 4);
protocolName = stream.ReadBytes(2);
Array.Copy(protocolName, 0, buffer, 4, 2);

protocolName = protocolName.Concat(stream.ReadBytes(2)).ToArray();
if (protocolName.SequenceEqual(ProtocolVersionV310Name))
{
protocolVersion = MqttProtocolVersion.V310;


Loading…
Откажи
Сачувај