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

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