From 1b5beb0d389533840800fe555b2848fc121d4d05 Mon Sep 17 00:00:00 2001 From: Bert Melis Date: Wed, 15 Jun 2022 14:57:48 +0200 Subject: [PATCH] remove unnecessary check --- src/MqttClient.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MqttClient.cpp b/src/MqttClient.cpp index 9ed07b8..3a0bbf8 100644 --- a/src/MqttClient.cpp +++ b/src/MqttClient.cpp @@ -406,7 +406,7 @@ void MqttClient::_onPublish() { EMC_SEMAPHORE_TAKE(); espMqttClientInternals::Outbox::Iterator it = _outbox.front(); while (it) { - if (((it.get()->packetType()) == PacketType.PUBREC || (it.get()->packetType()) == PacketType.PUBCOMP) && it.get()->packetId() == packetId) { + if ((it.get()->packetType()) == PacketType.PUBREC && it.get()->packetId() == packetId) { callback = false; emc_log_e("QoS2 packet previously delivered"); break;