mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
fix 2nd output when in rate limit per topic modes
to fix issue found in #3260
This commit is contained in:
parent
3e0f080ea7
commit
6ac0c0a367
@ -372,6 +372,7 @@ module.exports = function(RED) {
|
|||||||
hit = false;
|
hit = false;
|
||||||
for (var b in node.buffer) { // check if already in queue
|
for (var b in node.buffer) { // check if already in queue
|
||||||
if (msg.topic === node.buffer[b].msg.topic) {
|
if (msg.topic === node.buffer[b].msg.topic) {
|
||||||
|
if (node.outputs === 2) { send([null,node.buffer[b].msg]) }
|
||||||
node.buffer[b].done();
|
node.buffer[b].done();
|
||||||
node.buffer[b] = {msg, send, done}; // if so - replace existing entry
|
node.buffer[b] = {msg, send, done}; // if so - replace existing entry
|
||||||
hit = true;
|
hit = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user