ESL-50: Call close on connection handle if the connection fails
This commit is contained in:
parent
9537197b4d
commit
413dcc4cd2
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue