Skip to content

Commit

Permalink
tls: remove unnecessary close listener
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
ronag committed Jul 1, 2020
1 parent c7e55c6 commit 60a217b
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/_tls_wrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,6 @@ function TLSSocket(socket, opts) {
// handle, but a JS stream doesn't have one. Wrap it up to make it look like
// a socket.
wrap = new JSStreamSocket(socket);
wrap.once('close', () => this.destroy());
}

// Just a documented property to make secure sockets
Expand Down

0 comments on commit 60a217b

Please sign in to comment.