mirror of https://github.com/nodejs/node.git
tls: delete useless removeListener call
onclose was never attached to 'end' so this call to remove this listener is useless. Delete it.pull/24504/head
parent
a93424da4a
commit
19b87bbda0
|
@ -1373,7 +1373,6 @@ function pipe(pair, socket) {
|
|||
|
||||
function onclose() {
|
||||
socket.removeListener('error', onerror);
|
||||
socket.removeListener('end', onclose);
|
||||
socket.removeListener('timeout', ontimeout);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue