From 0f7119f4686fec427c2ac4a8f7a70c650fa751ee Mon Sep 17 00:00:00 2001 From: Dave Conway-Jones Date: Fri, 11 Dec 2015 14:17:50 +0000 Subject: [PATCH] TCPget don't send nun msg on disconnect (as we now send status anyway) --- nodes/core/io/31-tcpin.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/nodes/core/io/31-tcpin.js b/nodes/core/io/31-tcpin.js index 8a31a5e1e..75dbf0aa0 100644 --- a/nodes/core/io/31-tcpin.js +++ b/nodes/core/io/31-tcpin.js @@ -402,7 +402,6 @@ module.exports = function(RED) { if (socketTimeout !== null) { client.setTimeout(socketTimeout); } var host = node.server || msg.host; var port = node.port || msg.port; - var m; if (host && port) { client.connect(port, host, function() { @@ -477,8 +476,6 @@ module.exports = function(RED) { //console.log("END"); node.connected = false; node.status({fill:"grey",shape:"ring",text:"common.status.disconnected"}); - msg.payload = null; - node.send(msg); client = null; });