From a064e94c6704d77ae4902517154ae0b46b2fbd8e Mon Sep 17 00:00:00 2001 From: Robert Nagy Date: Sat, 7 Dec 2019 13:52:10 +0100 Subject: [PATCH] net: remove duplicate _undestroy initSocketHandle will call _undestroy. --- lib/net.js | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/net.js b/lib/net.js index 02fd18748036a3..3f5068bef2ef7d 100644 --- a/lib/net.js +++ b/lib/net.js @@ -936,7 +936,6 @@ Socket.prototype.connect = function(...args) { this.write = Socket.prototype.write; if (this.destroyed) { - this._undestroy(); this._handle = null; this._peername = null; this._sockname = null;