Write queue after connect windows

I'd rather see the check like: `if (handle->connect_req)`, it's more obvious.