mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 20:04:50 +00:00
disable unloading of embedded modules... there is a fundamental problem with doing so that will not be fixed in this version of Asterisk due to its invasiveness
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@56006 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -445,6 +445,11 @@ int ast_unload_resource(const char *resource_name, enum ast_module_unload_mode f
|
||||
if (!ast_test_flag(mod, FLAG_RUNNING | FLAG_DECLINED))
|
||||
error = 1;
|
||||
|
||||
if (!mod->lib) {
|
||||
ast_log(LOG_WARNING, "Unloading embedded modules is not supported.\n");
|
||||
error = 1;
|
||||
}
|
||||
|
||||
if (!error && (mod->usecount > 0)) {
|
||||
if (force)
|
||||
ast_log(LOG_WARNING, "Warning: Forcing removal of module '%s' with use count %d\n",
|
||||
|
Reference in New Issue
Block a user