diff --git a/lib/tls.js b/lib/tls.js index e184c29d7aa..6966a281333 100644 --- a/lib/tls.js +++ b/lib/tls.js @@ -1373,7 +1373,6 @@ function pipe(pair, socket) { function onclose() { socket.removeListener('error', onerror); - socket.removeListener('end', onclose); socket.removeListener('timeout', ontimeout); }