Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net: don't throw on immediately destroyed socket
Fixes regression introduced in af249fa. With connect being deferred to the next tick, Socket.destroy could be called before connect. Socket.destroy sets _connecting to false which would cause an assertion error. Fixes: #2250 PR-URL: #2251 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Jeremiah Senkpiel <[email protected]> Reviewed-By: Sakthipriyan Vairamani <[email protected]>
- Loading branch information