1
0
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:
Nicholas O'Leary 2013-10-18 10:03:32 +01:00
parent 426444b042
commit 294224de9b

View File

@ -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);