Commit 03eb41c2 authored by Ben Noordhuis's avatar Ben Noordhuis
Browse files

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.
parent 3ca05177
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