Close tcp port for tcpin node (same as previous fix but for input)

This commit is contained in:
Dave Conway-Jones 2015-12-07 19:44:25 +00:00
parent 04cd19349d
commit 9baca1772b
1 changed files with 1 additions and 1 deletions

View File

@ -119,7 +119,7 @@ module.exports = function(RED) {
this.on('close', function(done) {
node.done = done;
this.closing = true;
if (client) { client.end(); }
if (client) { client.destroy(); }
clearTimeout(reconnectTimeout);
if (!node.connected) { done(); }
});