mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-05-30 10:30:06 +00:00
fix crash on chan open failure
This commit is contained in:
parent
5284f5d134
commit
706c662f4b
@ -270,9 +270,9 @@ static switch_status_t channel_on_destroy(switch_core_session_t *session)
|
|||||||
if (tech_pvt->write_codec.implementation) {
|
if (tech_pvt->write_codec.implementation) {
|
||||||
switch_core_codec_destroy(&tech_pvt->write_codec);
|
switch_core_codec_destroy(&tech_pvt->write_codec);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ftdm_channel_close(&tech_pvt->ftdm_channel);
|
||||||
}
|
}
|
||||||
|
|
||||||
ftdm_channel_close(&tech_pvt->ftdm_channel);
|
|
||||||
|
|
||||||
return SWITCH_STATUS_SUCCESS;
|
return SWITCH_STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user