mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Remove unused oldDepth from Delay node
This commit is contained in:
parent
18615640e0
commit
92654a71fb
@ -121,7 +121,6 @@ module.exports = function(RED) {
|
|||||||
node.on("close", function() { clearDelayList(); });
|
node.on("close", function() { clearDelayList(); });
|
||||||
}
|
}
|
||||||
else if (node.pauseType === "rate") {
|
else if (node.pauseType === "rate") {
|
||||||
var olddepth = 0;
|
|
||||||
node.reportDepth = function() {
|
node.reportDepth = function() {
|
||||||
if (!node.busy) {
|
if (!node.busy) {
|
||||||
node.busy = setTimeout(function() {
|
node.busy = setTimeout(function() {
|
||||||
@ -148,7 +147,6 @@ module.exports = function(RED) {
|
|||||||
if (node.buffer.length === 0) {
|
if (node.buffer.length === 0) {
|
||||||
clearInterval(node.intervalID);
|
clearInterval(node.intervalID);
|
||||||
node.intervalID = -1;
|
node.intervalID = -1;
|
||||||
olddepth = 0;
|
|
||||||
}
|
}
|
||||||
if (node.buffer.length > 0) {
|
if (node.buffer.length > 0) {
|
||||||
node.send(node.buffer.shift());
|
node.send(node.buffer.shift());
|
||||||
|
Loading…
Reference in New Issue
Block a user