Skip to content

Commit 5eeec19

Browse files
committed
add return value to poll()
1 parent d3f2687 commit 5eeec19

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/MqttClient.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ int MqttClient::poll()
542542
if (_rxMessageQoS) {
543543
if (_rxLength < (_rxMessageTopicLength + 2)) {
544544
stop();
545-
return;
545+
return 0;
546546
}
547547
} else {
548548
if (_rxLength < _rxMessageTopicLength) {

0 commit comments

Comments
 (0)