1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

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

View File

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