diff --git a/lib/_tls_wrap.js b/lib/_tls_wrap.js index 2a596b67329098..546f8f5b89ad35 100644 --- a/lib/_tls_wrap.js +++ b/lib/_tls_wrap.js @@ -487,7 +487,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