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

This commit is contained in:
Brian West committed 2010-10-08 09:03:43 -05:00
1 parent 9537197b4d
commit 413dcc4cd2
1 file changed
+1
+1
View File
@@ -765,6 +765,7 @@ ESL_DECLARE(esl_status_t) esl_connect_timeout(esl_handle_t *handle, const char *
fail:
handle->connected = 0;
esl_disconnect(handle);
return ESL_FAIL;
}