1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

delay node: report queue activity wehn in by topic mode

This commit is contained in:
Dave Conway-Jones 2018-10-02 18:56:17 +01:00
parent d6211af5bd
commit 8de47c0a6e
No known key found for this signature in database
GPG Key ID: 9E7F9C73F5168CD4

View File

@ -234,7 +234,10 @@ module.exports = function(RED) {
break;
}
}
if (!hit) { node.buffer.push(msg); } // if not add to end of queue
if (!hit) {
node.buffer.push(msg); // if not add to end of queue
node.reportDepth();
}
if (msg.hasOwnProperty("reset")) {
node.buffer = [];
node.status({text:"reset"});