Преглед на файлове

packages that are events form the server may not cause invalid operation exceptions

release/3.x.x
JanEggers преди 7 години
родител
ревизия
d7e2b18247
променени са 1 файла, в които са добавени 4 реда и са изтрити 0 реда
  1. +4
    -0
      MQTTnet.Core/Client/MqttClient.cs

+ 4
- 0
MQTTnet.Core/Client/MqttClient.cs Целия файл

@@ -249,21 +249,25 @@ namespace MQTTnet.Core.Client
if (mqttPacket is MqttPingReqPacket)
{
await SendAsync(new MqttPingRespPacket());
return;
}

if (mqttPacket is MqttDisconnectPacket)
{
await DisconnectAsync();
return;
}

if (mqttPacket is MqttPublishPacket publishPacket)
{
await ProcessReceivedPublishPacket(publishPacket);
return;
}

if (mqttPacket is MqttPubRelPacket pubRelPacket)
{
await ProcessReceivedPubRelPacket(pubRelPacket);
return;
}

_packetDispatcher.Dispatch(mqttPacket);


Зареждане…
Отказ
Запис