Permalink
Browse files

tls: delete useless removeListener call

onclose was never attached to 'end' so this call to remove this listener
is useless.  Delete it.
  • Loading branch information...
1 parent a93424d commit 19b87bbda05f2cf141aa17c2ece5878ee7991fea Brandon Philips committed with bnoordhuis Oct 30, 2012
Showing with 0 additions and 1 deletion.
  1. +0 −1 lib/tls.js
View
@@ -1373,7 +1373,6 @@ function pipe(pair, socket) {
function onclose() {
socket.removeListener('error', onerror);
- socket.removeListener('end', onclose);
socket.removeListener('timeout', ontimeout);
}

0 comments on commit 19b87bb

Please sign in to comment.