mirror of
https://github.com/nodejs/node-v0.x-archive.git
synced 2026-04-28 03:01:10 -04:00
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:
committed by
Ben Noordhuis
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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user