]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
doh
authorAnthony Minessale <anthony.minessale@gmail.com>
Mon, 21 Jul 2008 17:33:46 +0000 (17:33 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Mon, 21 Jul 2008 17:33:46 +0000 (17:33 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9125 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_loadable_module.c

index e5be4654da87227648ff5ffddf08748aaf6fb5a1..015f8c89f1d9d13ad0f11596ce3251f763b8b00c 100644 (file)
@@ -860,6 +860,7 @@ SWITCH_DECLARE(switch_status_t) switch_loadable_module_unload_module(char *dir,
                        switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Module is not unloadable.\n");
                        *err = "Module is not unloadable";
                        status = SWITCH_STATUS_NOUNLOAD;
+                       goto end;
                } else {
                        do_shutdown(module);
                }
@@ -868,6 +869,7 @@ SWITCH_DECLARE(switch_status_t) switch_loadable_module_unload_module(char *dir,
                *err = "No such module!";
                status = SWITCH_STATUS_FALSE;
        }
+ end:
        switch_mutex_unlock(loadable_modules.mutex);
 
        return status;