From 294224de9b88b3ce8c4fe55f25b291691a393dbb Mon Sep 17 00:00:00 2001 From: Nicholas O'Leary Date: Fri, 18 Oct 2013 10:03:32 +0100 Subject: [PATCH] TailNode: kill tail process on close --- nodes/storage/28-tail.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nodes/storage/28-tail.js b/nodes/storage/28-tail.js index f2d3489ca..164b77bfb 100644 --- a/nodes/storage/28-tail.js +++ b/nodes/storage/28-tail.js @@ -42,6 +42,10 @@ function TailNode(n) { node.send(msg); } }); + + this.on("close",function() { + tail.kill(); + }); } RED.nodes.registerType("tail",TailNode);