Skip to content

Commit

Permalink
fixed stuck mod_rtmp session when the call is killed from fs side, su…
Browse files Browse the repository at this point in the history
…ch as using uuid_kill
  • Loading branch information
quentusrex committed Apr 24, 2013
1 parent c2077d7 commit 538c1af
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/mod/endpoints/mod_rtmp/mod_rtmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,10 @@ switch_status_t rtmp_on_destroy(switch_core_session_t *session)

switch_buffer_destroy(&tech_pvt->readbuf);
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;
Expand Down

0 comments on commit 538c1af

Please sign in to comment.