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
1 changed files with 4 additions and 1 deletions

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"});