]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
tweak
authorAnthony Minessale <anthony.minessale@gmail.com>
Mon, 20 Aug 2007 21:25:06 +0000 (21:25 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Mon, 20 Aug 2007 21:25:06 +0000 (21:25 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5639 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_loadable_module.c

index 97a3cb74873b310f7011267c8cb6b9e1c3754afa..3aea3b1a0cbf1a52ab67c6cbf4c3daef78e2f422 100644 (file)
@@ -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);
+
                
 }