diff --git a/packages/node_modules/@node-red/nodes/core/function/89-delay.js b/packages/node_modules/@node-red/nodes/core/function/89-delay.js index 17cbd2f4f..c44fa06c5 100644 --- a/packages/node_modules/@node-red/nodes/core/function/89-delay.js +++ b/packages/node_modules/@node-red/nodes/core/function/89-delay.js @@ -192,7 +192,8 @@ module.exports = function(RED) { } done(); }, delayvar, () => done()); - node.idList.push(id); + if (Object.keys(msg).length === 2 && msg.hasOwnProperty("flush")) { id.clear(); } + else { node.idList.push(id); } if (msg.hasOwnProperty("reset")) { clearDelayList(true); } if (msg.hasOwnProperty("flush")) { flushDelayList(msg.flush); done(); } if (delayvar >= 0) {