diff options
author | Russell Bryant <russell@russellbryant.com> | 2007-11-02 21:39:36 +0000 |
---|---|---|
committer | Russell Bryant <russell@russellbryant.com> | 2007-11-02 21:39:36 +0000 |
commit | c93520b88b37c124481c7f641f0ce892249e561f (patch) | |
tree | 103da8b21f1b35f40615e256db899d401950c80c /pbx/pbx_lua.c | |
parent | 9a47852673b1dac373a3a9cd9af8016ba91de58c (diff) |
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
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; |