Commit Graph

1 Commits (c0446edcc2e984f5ea298d3f9256c9ccaa77ff78)

Author SHA1 Message Date
Ben Noordhuis 03eb41c2ec net: don't emit 'close' event twice
Don't allow `socket.destroy()` to run twice. The self-destruct sequence itself
is idempotent but it makes the 'close' and 'error' events fire more than once,
which may confuse listeners.

Fixes #2223.
2011-12-01 14:57:06 +01:00