From 19b87bbda05f2cf141aa17c2ece5878ee7991fea Mon Sep 17 00:00:00 2001 From: Brandon Philips Date: Tue, 30 Oct 2012 07:42:44 -0700 Subject: [PATCH] tls: delete useless removeListener call onclose was never attached to 'end' so this call to remove this listener is useless. Delete it. --- lib/tls.js | 1 - 1 file changed, 1 deletion(-) 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); }