mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-03 19:28:53 +00:00
propagate the DECLINE return value back to the loader
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@88376 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1304,12 +1304,14 @@ static int reload(void)
|
||||
|
||||
static int load_module(void)
|
||||
{
|
||||
if (load_or_reload_lua_stuff())
|
||||
return AST_MODULE_LOAD_FAILURE;
|
||||
int res;
|
||||
|
||||
if ((res = load_or_reload_lua_stuff()))
|
||||
return res;
|
||||
|
||||
if (ast_register_switch(&lua_switch)) {
|
||||
ast_log(LOG_ERROR, "Unable to register LUA PBX switch\n");
|
||||
return AST_MODULE_LOAD_FAILURE;
|
||||
return AST_MODULE_LOAD_DECLINE;
|
||||
}
|
||||
|
||||
return AST_MODULE_LOAD_SUCCESS;
|
||||
|
Reference in New Issue
Block a user