Skip to content

Commit

Permalink
net: remove duplicate _undestroy
Browse files Browse the repository at this point in the history
initSocketHandle will call _undestroy.

PR-URL: #30833
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
  • Loading branch information
ronag authored and BethGriggs committed Feb 6, 2020
1 parent 5bffe11 commit 7952154
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/net.js
Expand Up @@ -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;
Expand Down

0 comments on commit 7952154

Please sign in to comment.