Skip to content

Commit 0638b78

Browse files
ronagtargos
authored andcommitted
net: remove duplicate _undestroy
initSocketHandle will call _undestroy. PR-URL: #30833 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent bf9a824 commit 0638b78

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)