From: Brian West Date: Fri, 8 Oct 2010 14:03:43 +0000 (-0500) Subject: ESL-50: Call close on connection handle if the connection fails X-Git-Tag: v1.2-rc1~291^2~7^2~8^2~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=413dcc4cd29be42c421a81453d0e36d783f17d72;p=thirdparty%2Ffreeswitch.git ESL-50: Call close on connection handle if the connection fails --- diff --git a/libs/esl/src/esl.c b/libs/esl/src/esl.c index 75a52d6bd2..4a02a8fe38 100644 --- a/libs/esl/src/esl.c +++ b/libs/esl/src/esl.c @@ -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; }