Forza chiusura client TCP in timeout
This commit is contained in:
+2
-2
@@ -137,7 +137,7 @@ module.exports = function(RED) {
|
||||
});
|
||||
client.on('timeout', function() {
|
||||
node.log(RED._("tcpin.errors.timeout",{port:node.port}));
|
||||
client.end();
|
||||
client.destroy();
|
||||
});
|
||||
client.on('close', function() {
|
||||
delete connectionPool[id];
|
||||
@@ -316,7 +316,7 @@ module.exports = function(RED) {
|
||||
});
|
||||
client.on('timeout', function() {
|
||||
node.log(RED._("tcpin.errors.timeout",{port:node.port}));
|
||||
client.end();
|
||||
client.destroy();
|
||||
});
|
||||
client.on('close', function() {
|
||||
node.status({fill:"red",shape:"ring",text:"common.status.disconnected"});
|
||||
|
||||
Reference in New Issue
Block a user