From 7952154e5e12fa1676dc4f91c0e82b601b66d6a0 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 a5e1ede73a3736..b32937f224b873 100644 --- a/lib/net.js +++ b/lib/net.js @@ -938,7 +938,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;