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 targos committed Jan 14, 2020
1 parent bf9a824 commit 0638b78
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/net.js
Original file line number Diff line number Diff line change
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 0638b78

Please sign in to comment.