From 2a1b8bd4e662c24bd5712f201d0094862a5727c9 Mon Sep 17 00:00:00 2001 From: Nathan Neulinger <nneul@neulinger.org> Date: Wed, 6 Jan 2016 11:27:35 -0600 Subject: [PATCH] mod_skinny: remove nested redundant mutex that could cause a hang --- src/mod/endpoints/mod_skinny/mod_skinny.c | 2 -- 1 file changed, 2 deletions(-) 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,