]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
mod_skinny: remove nested redundant mutex that could cause a hang
authorNathan Neulinger <nneul@neulinger.org>
Wed, 6 Jan 2016 17:27:35 +0000 (11:27 -0600)
committerNathan Neulinger <nneul@neulinger.org>
Wed, 6 Jan 2016 17:27:35 +0000 (11:27 -0600)
src/mod/endpoints/mod_skinny/mod_skinny.c

index 4d2ad25bddcb458ab8f12189be36db661095a70a..48f1f50589f92913641cea7f0afc088bb08798da 100644 (file)
@@ -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,