net: remove duplicate _undestroy

initSocketHandle will call _undestroy.

PR-URL: https://github.com/nodejs/node/pull/30833
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
Robert Nagy authored and Daniel Bevenius committed 2019-12-11 05:58:42 +01:00
1 parent b7d87e31f5
commit 855ca736de
1 file changed
-1
-1
View File
@@ -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;