doh
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9125 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
cf1f9503e8
commit
654d584fb9
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue