Browse Source

fixed unlimited error messages in TbMsgGeneratorNode

pull/4119/head
YevhenBondarenko 6 years ago
committed by Andrew Shvayka
parent
commit
d5b28222a3
  1. 3
      rule-engine/rule-engine-components/src/main/java/org/thingsboard/rule/engine/debug/TbMsgGeneratorNode.java

3
rule-engine/rule-engine-components/src/main/java/org/thingsboard/rule/engine/debug/TbMsgGeneratorNode.java

@ -104,9 +104,10 @@ public class TbMsgGeneratorNode implements TbNode {
}
},
t -> {
if (initialized) {
if (initialized && (config.getMsgCount() == TbMsgGeneratorNodeConfiguration.UNLIMITED_MSG_COUNT || currentMsgCount < config.getMsgCount())) {
ctx.tellFailure(msg, t);
scheduleTickMsg(ctx);
currentMsgCount++;
}
});
}

Loading…
Cancel
Save