This commit is contained in:
Anthony Minessale 2013-02-20 16:44:51 -06:00
parent 042347802b
commit 3c7f8f8119

View File

@ -1000,7 +1000,7 @@ static switch_status_t loopback_bowout_on_execute_state_handler(switch_core_sess
tech_pvt = switch_core_session_get_private(session); tech_pvt = switch_core_session_get_private(session);
switch_core_session_read_lock(tech_pvt->other_session); if (switch_core_session_read_lock(tech_pvt->other_session) == SWITCH_STATUS_SUCCESS) {
b_channel = switch_core_session_get_channel(tech_pvt->other_session); b_channel = switch_core_session_get_channel(tech_pvt->other_session);
/* Wait for b_channel to be fully bridged */ /* Wait for b_channel to be fully bridged */
@ -1035,10 +1035,11 @@ static switch_status_t loopback_bowout_on_execute_state_handler(switch_core_sess
} }
switch_core_session_rwunlock(tech_pvt->other_session); switch_core_session_rwunlock(tech_pvt->other_session);
}
switch_core_event_hook_remove_state_change(session, loopback_bowout_on_execute_state_handler); switch_core_event_hook_remove_state_change(session, loopback_bowout_on_execute_state_handler);
} }
return SWITCH_STATUS_SUCCESS; return SWITCH_STATUS_SUCCESS;
} }