We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c5baac commit baaf816Copy full SHA for baaf816
1 file changed
nodes/core/core/89-delay.js
@@ -80,6 +80,7 @@ module.exports = function(RED) {
80
this.intervalID = -1;
81
this.randomID = -1;
82
this.lastSent = Date.now();
83
+ this.drop = n.drop;
84
var node = this;
85
86
if (this.pauseType === "delay") {
@@ -101,7 +102,7 @@ module.exports = function(RED) {
101
102
103
} else if (this.pauseType === "rate") {
104
this.on("input", function(msg) {
- if (node.drop) {
105
+ if (!node.drop) {
106
if ( node.intervalID !== -1) {
107
node.buffer.push(msg);
108
if (node.buffer.length > 1000) {
0 commit comments