git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4313 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2007-02-17 22:19:56 +00:00
parent b47cd0314b
commit 4974b5b2b1
1 changed files with 4 additions and 0 deletions

View File

@ -322,6 +322,10 @@ SWITCH_DECLARE(switch_status_t) switch_rtp_set_local_address(switch_rtp_t *rtp_s
done:
if (status != SWITCH_STATUS_SUCCESS) {
rtp_session->ready = NULL;
}
if (new_sock) {
switch_socket_close(new_sock);
}