mirror of
https://github.com/nodejs/node.git
synced 2026-11-09 15:11:11 -05:00
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.