From: Chris Rienzo Date: Fri, 13 Jun 2014 03:24:35 +0000 (-0400) Subject: FS-6535 mod_rayo: fix double lock on speech detection failure X-Git-Tag: v1.5.13~187 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c82ac3afbf0ab9377e2354ce9ed7abd47766c4f9;p=thirdparty%2Ffreeswitch.git FS-6535 mod_rayo: fix double lock on speech detection failure --- diff --git a/src/mod/event_handlers/mod_rayo/rayo_input_component.c b/src/mod/event_handlers/mod_rayo/rayo_input_component.c index b4549b454f..cd9c092dbb 100644 --- a/src/mod/event_handlers/mod_rayo/rayo_input_component.c +++ b/src/mod/event_handlers/mod_rayo/rayo_input_component.c @@ -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;