diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-11-02 21:39:36 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-11-02 21:39:36 +0000 |
commit | 3b2405b45f2d4e4daad02cafb335b8c599f127cf (patch) | |
tree | 103da8b21f1b35f40615e256db899d401950c80c /pbx/pbx_lua.c | |
parent | f5b2699dac6f2ed326d99f9cd5a0c06edd7712e6 (diff) |
propagate the DECLINE return value back to the loader
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@88376 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'pbx/pbx_lua.c')
-rw-r--r-- | pbx/pbx_lua.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/pbx/pbx_lua.c b/pbx/pbx_lua.c index 49d0ae51d..193f031a5 100644 --- a/pbx/pbx_lua.c +++ b/pbx/pbx_lua.c @@ -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; |