Skip to content

Commit

Permalink
add return value to poll()
Browse files Browse the repository at this point in the history
  • Loading branch information
hmueller01 committed Nov 12, 2024
1 parent d3f2687 commit 5eeec19
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 @@ -542,7 +542,7 @@ int MqttClient::poll()
if (_rxMessageQoS) {
if (_rxLength < (_rxMessageTopicLength + 2)) {
stop();
return;
return 0;
}
} else {
if (_rxLength < _rxMessageTopicLength) {
Expand Down

0 comments on commit 5eeec19

Please sign in to comment.