mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-29 15:36:13 +00:00 
			
		
		
		
	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
This commit is contained in:
		| @@ -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; | ||||
| 	} | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user