Skip to content

net: return if not _connecting

Fixes regression introduced in af249fa8.

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: https://github.com/nodejs/io.js/issues/2250

Merge request reports

Loading