Commit Graph

1 Commits (4401bb47bfa4fe72c2755c428577903ece5cfaa0)

Author SHA1 Message Date
Ben Noordhuis 4cb17cb219 net: fix net.connect() resource leak
The 'connect' event listener was attached with .on(), which blocked it from
getting garbage collected. Use .once() instead.

Fixes #4308.
2012-11-24 15:27:14 +01:00