mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-13 13:07:06 +00:00
ESL-50: Call close on connection handle if the connection fails
This commit is contained in:
1 parent
9537197b4d
commit
413dcc4cd2
1 file changed
+1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user