Commit Graph

1 Commits (76ddf06f1081e51c163f1c5bc3d37895ed2c62c6)

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