mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
only set tcp timeout if needs setting.
This commit is contained in:
parent
b555b014b8
commit
2d4979df4d
@ -393,7 +393,7 @@ module.exports = function(RED) {
|
|||||||
}
|
}
|
||||||
if (!node.connected) {
|
if (!node.connected) {
|
||||||
client = net.Socket();
|
client = net.Socket();
|
||||||
client.setTimeout(socketTimeout);
|
if (socketTimeout) { client.setTimeout(socketTimeout); }
|
||||||
//node.status({});
|
//node.status({});
|
||||||
var host = node.server || msg.host;
|
var host = node.server || msg.host;
|
||||||
var port = node.port || msg.port;
|
var port = node.port || msg.port;
|
||||||
|
Loading…
Reference in New Issue
Block a user