提交 7e620632 authored 作者: Chris Rienzo's avatar Chris Rienzo 提交者: Chris Rienzo

FS-11693 [core] speed up switch_channel_get_log_tags() for the case when none are set

上级 fd30f116
......@@ -1440,6 +1440,9 @@ SWITCH_DECLARE(switch_status_t) switch_channel_get_log_tags(switch_channel_t *ch
{
switch_status_t status = SWITCH_STATUS_FALSE;
switch_assert(channel != NULL);
if (!channel->log_tags) {
return status;
}
switch_mutex_lock(channel->profile_mutex);
if (channel->log_tags && log_tags) {
status = switch_event_dup(log_tags, channel->log_tags);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论