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
1 changed files with 0 additions and 3 deletions

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