ESL-50: Call close on connection handle if the connection fails

This commit is contained in:
Brian West 2010-10-08 09:03:43 -05:00
parent 9537197b4d
commit 413dcc4cd2
1 changed files with 1 additions and 0 deletions

View File

@ -765,6 +765,7 @@ ESL_DECLARE(esl_status_t) esl_connect_timeout(esl_handle_t *handle, const char *
fail: fail:
handle->connected = 0; handle->connected = 0;
esl_disconnect(handle);
return ESL_FAIL; return ESL_FAIL;
} }