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:
parent
04cd19349d
commit
9baca1772b
@ -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(); }
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user