From: Anthony Minessale Date: Sat, 17 Feb 2007 22:19:56 +0000 (+0000) Subject: tweak X-Git-Tag: v1.0-beta1~1056 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4974b5b2b1d4a10f51db871ceea9c8c49c741963;p=thirdparty%2Ffreeswitch.git tweak git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4313 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/switch_rtp.c b/src/switch_rtp.c index 399c45399c..c68180e9e8 100644 --- a/src/switch_rtp.c +++ b/src/switch_rtp.c @@ -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); }