From 090d52d67811501325867f934b11cf8c9b3a9b48 Mon Sep 17 00:00:00 2001 From: Dave Conway-Jones Date: Tue, 1 Dec 2015 13:41:39 +0000 Subject: [PATCH] narrowing in on tcpget fix, reconnect but don't resend. to address issue #759 --- nodes/core/io/31-tcpin.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/nodes/core/io/31-tcpin.js b/nodes/core/io/31-tcpin.js index d57dcd265..1cb0fba1a 100644 --- a/nodes/core/io/31-tcpin.js +++ b/nodes/core/io/31-tcpin.js @@ -494,17 +494,17 @@ module.exports = function(RED) { client.on('timeout',function() { //console.log("TIMEOUT"); node.connected = false; - node.status({fill:"grey",shape:"dot"}); - node.warn(RED._("tcpin.errors.connect-timeout")); + node.status({fill:"grey",shape:"dot",text:"tcpin.errors.connect-timeout"}); + //node.warn(RED._("tcpin.errors.connect-timeout")); if (client) { - client.end(); - setTimeout(function() { + //client.end(); + //setTimeout(function() { client.connect(port, host, function() { node.connected = true; node.status({fill:"green",shape:"dot",text:"common.status.connected"}); - client.write(msg.payload); + //client.write(msg.payload); }); - },reconnectTime); + //},reconnectTime); } }); }