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:
parent
2685a24705
commit
0f7119f468
@ -402,7 +402,6 @@ module.exports = function(RED) {
|
|||||||
if (socketTimeout !== null) { client.setTimeout(socketTimeout); }
|
if (socketTimeout !== null) { client.setTimeout(socketTimeout); }
|
||||||
var host = node.server || msg.host;
|
var host = node.server || msg.host;
|
||||||
var port = node.port || msg.port;
|
var port = node.port || msg.port;
|
||||||
var m;
|
|
||||||
|
|
||||||
if (host && port) {
|
if (host && port) {
|
||||||
client.connect(port, host, function() {
|
client.connect(port, host, function() {
|
||||||
@ -477,8 +476,6 @@ module.exports = function(RED) {
|
|||||||
//console.log("END");
|
//console.log("END");
|
||||||
node.connected = false;
|
node.connected = false;
|
||||||
node.status({fill:"grey",shape:"ring",text:"common.status.disconnected"});
|
node.status({fill:"grey",shape:"ring",text:"common.status.disconnected"});
|
||||||
msg.payload = null;
|
|
||||||
node.send(msg);
|
|
||||||
client = null;
|
client = null;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user