From 62e7b253c974fa426064d4ff9d7be5e52e9d6120 Mon Sep 17 00:00:00 2001 From: Nicholas O'Leary Date: Wed, 18 Sep 2013 09:21:12 +0100 Subject: [PATCH] HTTP node not closeing properly --- nodes/io/21-httpin.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/nodes/io/21-httpin.js b/nodes/io/21-httpin.js index d7b676dd2..b0bbd96e3 100644 --- a/nodes/io/21-httpin.js +++ b/nodes/io/21-httpin.js @@ -37,15 +37,17 @@ function HTTPIn(n) { } } +RED.nodes.registerType("http in",HTTPIn); HTTPIn.prototype.close = function() { - var routes = redUI.app.routes[this.method]; + console.log(RED.app.routes[this.method]); + var routes = RED.app.routes[this.method]; for (var i in routes) { if (routes[i].path == this.url) { routes.splice(i,1); break; } } + console.log(RED.app.routes[this.method]); } -RED.nodes.registerType("http in",HTTPIn);