Skip to content
Snippets Groups Projects
Commit ee5e39e0 authored by Joshua Colp's avatar Joshua Colp
Browse files

Add a log message that appears when you try to unload a module that isn't loaded.

(closes issue #12033)
Reported by: jamesgolovich
Patches:
      asterisk-loader.diff.txt uploaded by jamesgolovich (license 176)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@103828 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent c929c6ab
Branches
Tags
No related merge requests found
......@@ -478,6 +478,7 @@ int ast_unload_resource(const char *resource_name, enum ast_module_unload_mode f
if (!(mod = find_resource(resource_name, 0))) {
AST_LIST_UNLOCK(&module_list);
ast_log(LOG_WARNING, "Unload failed, '%s' could not be found\n", resource_name);
return 0;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment