From 855ca736de018f05bb55e2e9489f058a3b9e57fa 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. PR-URL: https://github.com/nodejs/node/pull/30833 Reviewed-By: Rich Trott Reviewed-By: Luigi Pinca --- lib/net.js | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/net.js b/lib/net.js index 5f12c733dd4..751980d6e35 100644 --- a/lib/net.js +++ b/lib/net.js @@ -937,7 +937,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;