mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
TailNode: kill tail process on close
This commit is contained in:
parent
426444b042
commit
294224de9b
@ -42,6 +42,10 @@ function TailNode(n) {
|
|||||||
node.send(msg);
|
node.send(msg);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
this.on("close",function() {
|
||||||
|
tail.kill();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
RED.nodes.registerType("tail",TailNode);
|
RED.nodes.registerType("tail",TailNode);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user