From c6355e02fb0eeaeca822cd6c8e538aef9e18b610 Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Tue, 23 Jan 2024 18:23:04 +0100 Subject: [PATCH] Better bailout --- tasmota/tasmota_xdrv_driver/xdrv_10_rules.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasmota/tasmota_xdrv_driver/xdrv_10_rules.ino b/tasmota/tasmota_xdrv_driver/xdrv_10_rules.ino index cdbeba531..ec06ca00d 100644 --- a/tasmota/tasmota_xdrv_driver/xdrv_10_rules.ino +++ b/tasmota/tasmota_xdrv_driver/xdrv_10_rules.ino @@ -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;