From: Chris Rienzo Date: Wed, 17 Dec 2014 19:49:01 +0000 (-0500) Subject: FS-7091 #resolve #comment [mod_rayo] Removed unnecessary mutex lock inside input... X-Git-Tag: v1.4.15^2~32 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d5119a7a771b46db0720d0e49cf88d250a82551c;p=thirdparty%2Ffreeswitch.git FS-7091 #resolve #comment [mod_rayo] Removed unnecessary mutex lock inside input component's cleanup function since the input component won't be cleaned up unless all references have been released. This fixes a deadlock when output component is created at the same time an input component completes. --- 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 e199b46b8e..0eaabae613 100644 --- a/src/mod/event_handlers/mod_rayo/rayo_input_component.c +++ b/src/mod/event_handlers/mod_rayo/rayo_input_component.c @@ -736,7 +736,6 @@ static char *create_input_component_id(switch_core_session_t *session, iks *inpu */ static void input_component_cleanup(struct rayo_actor *component) { - switch_mutex_lock(component->mutex); if (INPUT_COMPONENT(component)->speech_mode) { switch_core_session_t *session = switch_core_session_locate(component->parent->id); if (session) { @@ -744,7 +743,6 @@ static void input_component_cleanup(struct rayo_actor *component) switch_core_session_rwunlock(session); } } - switch_mutex_unlock(component->mutex); } /**