]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
tweak
authorAnthony Minessale <anthony.minessale@gmail.com>
Sat, 17 Feb 2007 22:19:56 +0000 (22:19 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Sat, 17 Feb 2007 22:19:56 +0000 (22:19 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4313 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_rtp.c

index 399c45399c3f36e1af992e9c56a568bae16eb9ce..c68180e9e8e53d6e0ab4a1c396b04ba5f0b4c9a7 100644 (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);
        }