From 15fbb280fa703cc4adc92d80f73509d6120c3c3d Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Mon, 20 Aug 2007 21:25:06 +0000 Subject: [PATCH] tweak git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5639 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/switch_loadable_module.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/switch_loadable_module.c b/src/switch_loadable_module.c index 97a3cb7487..3aea3b1a0c 100644 --- a/src/switch_loadable_module.c +++ b/src/switch_loadable_module.c @@ -1047,6 +1047,7 @@ static void do_shutdown(switch_loadable_module_t *module) assert(module != NULL); switch_loadable_module_unprocess(module); + switch_core_hash_delete_locked(loadable_modules.module_hash, module->key, loadable_modules.mutex); if (module->switch_module_shutdown) { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CONSOLE, "Stopping: %s\n", module->module_interface->module_name); @@ -1067,7 +1068,7 @@ static void do_shutdown(switch_loadable_module_t *module) } - switch_core_hash_delete_locked(loadable_modules.module_hash, module->key, loadable_modules.mutex); + }