提交 6d1f4f6d authored 作者: Michael Jerris's avatar Michael Jerris

potential fix for MODLANG-54

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7995 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 94b22258
......@@ -85,10 +85,12 @@ CoreSession::CoreSession(switch_core_session_t *new_session)
{
memset(&caller_profile, 0, sizeof(caller_profile));
init_vars();
session = new_session;
channel = switch_core_session_get_channel(session);
allocated = 1;
switch_core_session_read_lock(session);
if (new_session) {
session = new_session;
channel = switch_core_session_get_channel(session);
allocated = 1;
switch_core_session_read_lock(session);
}
}
CoreSession::~CoreSession()
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论