mirror of https://github.com/node-red/node-red.git
TailNode: kill tail process on close
parent
426444b042
commit
294224de9b
|
@ -42,6 +42,10 @@ function TailNode(n) {
|
|||
node.send(msg);
|
||||
}
|
||||
});
|
||||
|
||||
this.on("close",function() {
|
||||
tail.kill();
|
||||
});
|
||||
}
|
||||
|
||||
RED.nodes.registerType("tail",TailNode);
|
||||
|
|
Loading…
Reference in New Issue