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 Dec 11, 2019
1 parent ce21fc7 commit 123327d
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 @@ -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;
Expand Down

0 comments on commit 123327d

Please sign in to comment.