Skip to content

Commit 7952154

Browse files
ronagBethGriggs
authored andcommitted
net: remove duplicate _undestroy
initSocketHandle will call _undestroy. PR-URL: #30833 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 5bffe11 commit 7952154

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

lib/net.js

-1
Original file line numberDiff line numberDiff line change
@@ -938,7 +938,6 @@ Socket.prototype.connect = function(...args) {
938938
this.write = Socket.prototype.write;
939939

940940
if (this.destroyed) {
941-
this._undestroy();
942941
this._handle = null;
943942
this._peername = null;
944943
this._sockname = null;

0 commit comments

Comments
 (0)