Commit 121ed913 authored by Ben Noordhuis's avatar Ben Noordhuis
Browse files

tls: fix tls.connect() resource leak

The 'secureConnect' event listener was attached with .on(), which blocked it
from getting garbage collected. Use .once() instead.

Fixes #4308.
parent 4cb17cb2
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment