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
1 changed files with 4 additions and 0 deletions

View File

@ -42,6 +42,10 @@ function TailNode(n) {
node.send(msg);
}
});
this.on("close",function() {
tail.kill();
});
}
RED.nodes.registerType("tail",TailNode);