Skip to content

Commit

Permalink
remove unnecessary check
Browse files Browse the repository at this point in the history
  • Loading branch information
bertmelis committed Jun 15, 2022
1 parent ecdb99f commit 1b5beb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MqttClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ void MqttClient::_onPublish() {
EMC_SEMAPHORE_TAKE();
espMqttClientInternals::Outbox<espMqttClientInternals::Packet>::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;
Expand Down

0 comments on commit 1b5beb0

Please sign in to comment.