mirror of
https://github.com/nodejs/node.git
synced 2026-11-09 15:11:11 -05: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:
1 parent
a93424da4a
commit
19b87bbda0
1 file changed
-1
@@ -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