提交 fbbc6e14 authored 作者: Mike Jerris's avatar Mike Jerris

Merge pull request #1251 in FS/freeswitch from ~BRADLEYJOKINEN/freeswitch:FS-10231 to master

* commit '68b241fc':
  FS-10231 Fix issue with media bugs not being completely cleaned up when session is destroyed
......@@ -1130,17 +1130,13 @@ SWITCH_DECLARE(switch_status_t) switch_core_media_bug_remove_all_function(switch
continue;
}
if (bp->callback) {
bp->callback(bp, bp->user_data, SWITCH_ABC_TYPE_CLOSE);
}
switch_core_media_bug_destroy(bp);
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "Removing BUG from %s\n", switch_channel_get_name(session->channel));
if (last) {
last->next = bp->next;
} else {
session->bugs = bp->next;
}
switch_core_media_bug_close(&bp);
}
switch_thread_rwlock_unlock(session->bug_rwlock);
status = SWITCH_STATUS_SUCCESS;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论