Commit d5b28222a37d87703531da0c7134060e96c9dd2f
Committed by
Andrew Shvayka
1 parent
a15e991d
fixed unlimited error messages in TbMsgGeneratorNode
Showing
1 changed file
with
2 additions
and
1 deletions
... | ... | @@ -104,9 +104,10 @@ public class TbMsgGeneratorNode implements TbNode { |
104 | 104 | } |
105 | 105 | }, |
106 | 106 | t -> { |
107 | - if (initialized) { | |
107 | + if (initialized && (config.getMsgCount() == TbMsgGeneratorNodeConfiguration.UNLIMITED_MSG_COUNT || currentMsgCount < config.getMsgCount())) { | |
108 | 108 | ctx.tellFailure(msg, t); |
109 | 109 | scheduleTickMsg(ctx); |
110 | + currentMsgCount++; | |
110 | 111 | } |
111 | 112 | }); |
112 | 113 | } | ... | ... |