From 123327d4c1587d5ec69937656087c16c23ceb1bd 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 5f12c733dd4422..751980d6e352ef 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;