提交 c82ac3af authored 作者: Chris Rienzo's avatar Chris Rienzo

FS-6535 mod_rayo: fix double lock on speech detection failure

上级 bb6869b7
......@@ -598,8 +598,9 @@ static iks *start_call_voice_input(struct input_component *component, switch_cor
switch_mutex_lock(handler->mutex);
handler->voice_component = NULL;
rayo_component_send_complete(RAYO_COMPONENT(component), COMPONENT_COMPLETE_ERROR);
} else {
switch_mutex_lock(handler->mutex);
}
switch_mutex_lock(handler->mutex);
switch_safe_free(grammar);
return NULL;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论