Fix flushing when in variable delay mode

to close #5381
pull/5382/head
Dave Conway-Jones 2025-12-12 22:42:46 +00:00
parent 6a75a084ad
commit 636089b586
No known key found for this signature in database
GPG Key ID: 1DDB0E91A28C2643
1 changed files with 2 additions and 1 deletions

View File

@ -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) {