From 4974b5b2b1d4a10f51db871ceea9c8c49c741963 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Sat, 17 Feb 2007 22:19:56 +0000 Subject: [PATCH] tweak git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4313 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/switch_rtp.c | 4 ++++ 1 file changed, 4 insertions(+) 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); }