From: Nathan Neulinger Date: Wed, 6 Jan 2016 17:27:35 +0000 (-0600) Subject: mod_skinny: remove nested redundant mutex that could cause a hang X-Git-Tag: v1.6.6~1^2~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2a1b8bd4e662c24bd5712f201d0094862a5727c9;p=thirdparty%2Ffreeswitch.git mod_skinny: remove nested redundant mutex that could cause a hang --- diff --git a/src/mod/endpoints/mod_skinny/mod_skinny.c b/src/mod/endpoints/mod_skinny/mod_skinny.c index 4d2ad25bdd..48f1f50589 100644 --- a/src/mod/endpoints/mod_skinny/mod_skinny.c +++ b/src/mod/endpoints/mod_skinny/mod_skinny.c @@ -2450,9 +2450,7 @@ static switch_status_t load_skinny_config(void) skinny_profile_respawn(profile, 0); /* Register profile */ - switch_mutex_lock(globals.mutex); switch_core_hash_insert(globals.profile_hash, profile->name, profile); - switch_mutex_unlock(globals.mutex); profile = NULL; } else { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR,