tls: delete useless removeListener call

onclose was never attached to 'end' so this call to remove this listener
is useless.  Delete it.
This commit is contained in:
Brandon Philips authored and Ben Noordhuis committed 2012-10-30 16:58:07 +01:00
1 parent a93424da4a
commit 19b87bbda0
1 file changed
-1
-1
View File
@@ -1373,7 +1373,6 @@ function pipe(pair, socket) {
function onclose() {
socket.removeListener('error', onerror);
socket.removeListener('end', onclose);
socket.removeListener('timeout', ontimeout);
}