fix rtp destroy race.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2678 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
f385b33813
commit
231c1d09f0
|
@ -649,7 +649,6 @@ static void deactivate_rtp(private_object_t *tech_pvt)
|
|||
loops++;
|
||||
}
|
||||
switch_rtp_destroy(&tech_pvt->rtp_session);
|
||||
tech_pvt->rtp_session = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -547,6 +547,7 @@ SWITCH_DECLARE(switch_status_t) switch_rtp_activate_ice(switch_rtp_t *rtp_sessio
|
|||
|
||||
SWITCH_DECLARE(void) switch_rtp_kill_socket(switch_rtp_t *rtp_session)
|
||||
{
|
||||
assert(rtp_session != NULL);
|
||||
switch_mutex_lock(rtp_session->flag_mutex);
|
||||
apr_socket_shutdown(rtp_session->sock, APR_SHUTDOWN_READWRITE);
|
||||
switch_clear_flag(rtp_session, SWITCH_RTP_FLAG_IO);
|
||||
|
|
Loading…
Reference in New Issue