mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-19 08:11:21 +00:00
Conditionally load the AGI command gosub, depending on whether or not res_agi
has been loaded, fix a return value in the loader, and ensure that the help workhorse header does not print on load. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@120602 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -726,11 +726,12 @@ static enum ast_module_load_result load_resource(const char *resource_name, unsi
|
||||
|
||||
int ast_load_resource(const char *resource_name)
|
||||
{
|
||||
int res;
|
||||
AST_LIST_LOCK(&module_list);
|
||||
load_resource(resource_name, 0);
|
||||
res = load_resource(resource_name, 0);
|
||||
AST_LIST_UNLOCK(&module_list);
|
||||
|
||||
return 0;
|
||||
return res;
|
||||
}
|
||||
|
||||
struct load_order_entry {
|
||||
|
||||
Reference in New Issue
Block a user