mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-13 12:40:17 +00:00
FS-6535 mod_rayo: fix double lock on speech detection failure
This commit is contained in:
parent
bb6869b7ab
commit
c82ac3afbf
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user