mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02: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…
Reference in New Issue
Block a user