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

This commit is contained in:
Chris Rienzo 2014-06-12 23:24:35 -04:00
parent bb6869b7ab
commit c82ac3afbf
1 changed files with 2 additions and 1 deletions

View File

@ -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;