From 5eeec198713fbb8e6ac5f285de9e299dd3266a5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Holger=20Mu=CC=88ller?= Date: Tue, 12 Nov 2024 21:36:04 +0100 Subject: [PATCH] add return value to poll() --- src/MqttClient.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MqttClient.cpp b/src/MqttClient.cpp index 75cddf4..e78a193 100644 --- a/src/MqttClient.cpp +++ b/src/MqttClient.cpp @@ -542,7 +542,7 @@ int MqttClient::poll() if (_rxMessageQoS) { if (_rxLength < (_rxMessageTopicLength + 2)) { stop(); - return; + return 0; } } else { if (_rxLength < _rxMessageTopicLength) {