Better bailout

This commit is contained in:
Theo Arends 2024-01-23 18:23:04 +01:00
parent dca33c10a3
commit c6355e02fb
1 changed files with 1 additions and 1 deletions

View File

@ -1171,7 +1171,7 @@ bool RulesMqttData(void) {
XdrvMailbox.data = (char*)data;
XdrvMailbox.data_len = data_len;
*/
if (XdrvMailbox.data_len < 1) {
if ((XdrvMailbox.data_len < 1) || (subscriptions.isEmpty())) {
return false; // Process unchanged data
}
bool serviced = false;