Skip to content

Commit 68654da

Browse files
ronagaddaleax
authored andcommitted
tls: remove unnecessary close listener
Wrapped streams are expected to behave the same as socket with handle. Remove unnecessary difference in handling. PR-URL: #34105 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]>
1 parent 0672384 commit 68654da

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

lib/_tls_wrap.js

-1
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,6 @@ function TLSSocket(socket, opts) {
487487
// handle, but a JS stream doesn't have one. Wrap it up to make it look like
488488
// a socket.
489489
wrap = new JSStreamSocket(socket);
490-
wrap.once('close', () => this.destroy());
491490
}
492491

493492
// Just a documented property to make secure sockets

0 commit comments

Comments
 (0)