1
0
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:
Dave Conway-Jones 2021-11-15 14:05:16 +00:00
parent 3e0f080ea7
commit 6ac0c0a367
No known key found for this signature in database
GPG Key ID: 88BA2B8A411BE9FF

View File

@ -372,6 +372,7 @@ module.exports = function(RED) {
hit = false;
for (var b in node.buffer) { // check if already in queue
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] = {msg, send, done}; // if so - replace existing entry
hit = true;