1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

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

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