Safeguard against late dns-lookup connect callbacks during event loop shutdown.
Safeguard against late dns-lookup connect callbacks during event loop shutdown.

Sometimes dns-lookup callback may be invoked during event loop shutdown
or after the socket was explicitly closed. That led to
!uv__io_active(&stream->io_watcher, UV__POLLIN | UV__POLLOUT)
(stream.c) assertion errors in libuv due to uv_tcp_connect()
call on the socket.

orthecreedence/cl-async,Drooids/cl-async