From 1808b43893ba6894eb2d3a7f554015237fe8bd1d Mon Sep 17 00:00:00 2001 From: Oren Zomer Date: Tue, 3 Nov 2015 00:05:38 +0200 Subject: [PATCH] msg var not used --- io/stomp/18-stomp.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/io/stomp/18-stomp.js b/io/stomp/18-stomp.js index 8fda2872..a6809ee1 100644 --- a/io/stomp/18-stomp.js +++ b/io/stomp/18-stomp.js @@ -61,7 +61,6 @@ module.exports = function(RED) { var node = this; var msg = {topic:this.topic}; - node.client = new StompClient(node.stompClientOpts); node.client.on("connect", function() { @@ -130,10 +129,7 @@ module.exports = function(RED) { } var node = this; - var msg = {topic:this.topic}; - node.client = new StompClient(node.stompClientOpts); - node.status({fill:"grey",shape:"ring",text:"connecting"}); node.client.on("connect", function() { node.status({fill:"green",shape:"dot",text:"connected"}); @@ -149,6 +145,7 @@ module.exports = function(RED) { node.warn(error); }); + node.status({fill:"grey",shape:"ring",text:"connecting"}); node.client.connect(function(sessionId) { }, function(error) { node.status({fill:"grey",shape:"dot",text:"error"}); @@ -169,4 +166,4 @@ module.exports = function(RED) { } RED.nodes.registerType("stomp out",StompOutNode); -} +};