mod_portaudio: do not destroy codec and timers if there is a call in progress!
This commit is contained in:
parent
e7a58ab233
commit
dbe4a4850a
|
@ -1245,6 +1245,7 @@ static switch_call_cause_t channel_outgoing_channel(switch_core_session_t *sessi
|
|||
|
||||
error:
|
||||
if (endpoint) {
|
||||
if (!endpoint->master) {
|
||||
if (endpoint->read_timer.interval) {
|
||||
switch_core_timer_destroy(&endpoint->read_timer);
|
||||
}
|
||||
|
@ -1257,6 +1258,7 @@ error:
|
|||
if (endpoint->write_codec.codec_interface) {
|
||||
switch_core_codec_destroy(&endpoint->write_codec);
|
||||
}
|
||||
}
|
||||
switch_mutex_unlock(endpoint->mutex);
|
||||
}
|
||||
if (new_session && *new_session) {
|
||||
|
|
Loading…
Reference in New Issue