Fix delay node flush issue

to close #4202
This commit is contained in:
Dave Conway-Jones 2023-05-27 17:51:21 +01:00
parent 26a770e490
commit 5e4fce1e12
No known key found for this signature in database
GPG Key ID: 1DDB0E91A28C2643
1 changed files with 1 additions and 0 deletions

View File

@ -229,6 +229,7 @@ module.exports = function(RED) {
node.on("input", function(msg, send, done) {
if (!node.drop) {
var m = RED.util.cloneMessage(msg);
delete m.flush;
if (Object.keys(m).length > 1) {
if (node.intervalID !== -1) {
if (node.allowrate && m.hasOwnProperty("rate") && !isNaN(parseFloat(m.rate)) && node.rate !== m.rate) {