提交 07045091 authored 作者: Mathieu Rene's avatar Mathieu Rene

try that Kristian

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16586 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 adbb9057
......@@ -1161,7 +1161,10 @@ SWITCH_STANDARD_APP(limit_hash_execute_function)
if (do_limit_hash(session, realm, id, max, interval)) {
switch_core_session_execute_application(session, app, app_arg);
limit_hash_release(session, realm, id);
/* Only release the resource if we are still in CS_EXECUTE */
if (switch_channel_get_state(switch_core_session_get_channel(session)) == CS_EXECUTE) {
limit_hash_release(session, realm, id);
}
}
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论