]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
ESL-50: Call close on connection handle if the connection fails
authorBrian West <brian@freeswitch.org>
Fri, 8 Oct 2010 14:03:43 +0000 (09:03 -0500)
committerBrian West <brian@freeswitch.org>
Fri, 8 Oct 2010 14:03:43 +0000 (09:03 -0500)
libs/esl/src/esl.c

index 75a52d6bd2e73bc618787e2bc7f3f5f0b0bd43ac..4a02a8fe38afd151778fc2c548d5651d0bfbf364 100644 (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;
 }