Write queue after connect windows

Should be:

~~~~
if (handle->socket == INVALID_HANDLE_VALUE)
~~~~