mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-05-02 06:38:04 +00:00
fixed stuck mod_rtmp session when the call is killed from fs side, such as using uuid_kill
This commit is contained in:
parent
de1f013f2e
commit
d8edc031fa
@ -233,6 +233,10 @@ switch_status_t rtmp_on_destroy(switch_core_session_t *session)
|
|||||||
|
|
||||||
switch_buffer_destroy(&tech_pvt->readbuf);
|
switch_buffer_destroy(&tech_pvt->readbuf);
|
||||||
switch_core_timer_destroy(&tech_pvt->timer);
|
switch_core_timer_destroy(&tech_pvt->timer);
|
||||||
|
|
||||||
|
if (tech_pvt->rtmp_session->state != RS_DESTROY) {
|
||||||
|
rtmp_session_destroy(&tech_pvt->rtmp_session);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return SWITCH_STATUS_SUCCESS;
|
return SWITCH_STATUS_SUCCESS;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user