1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

TCPget don't send nun msg on disconnect

(as we now send status anyway)
This commit is contained in:
Dave Conway-Jones 2015-12-11 14:17:50 +00:00
parent 2685a24705
commit 0f7119f468

View File

@ -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;
});