diff options
author | Russell Bryant <russell@russellbryant.com> | 2007-11-02 21:36:37 +0000 |
---|---|---|
committer | Russell Bryant <russell@russellbryant.com> | 2007-11-02 21:36:37 +0000 |
commit | 9a47852673b1dac373a3a9cd9af8016ba91de58c (patch) | |
tree | 1df2e859476d222dfbb915ec804afcce92740894 /pbx/pbx_lua.c | |
parent | 927901fdefddf71c89e8fdd5b17de709a7a8e55d (diff) |
Don't kill asterisk if extensions.lua is not present.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@88371 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'pbx/pbx_lua.c')
-rw-r--r-- | pbx/pbx_lua.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pbx/pbx_lua.c b/pbx/pbx_lua.c index 455cc700b..49d0ae51d 100644 --- a/pbx/pbx_lua.c +++ b/pbx/pbx_lua.c @@ -1277,13 +1277,13 @@ static int load_or_reload_lua_stuff(void) lua_State *L = luaL_newstate(); if (!L) { ast_log(LOG_ERROR, "Error allocating lua_State, no memory\n"); - return AST_MODULE_LOAD_FAILURE; + return AST_MODULE_LOAD_DECLINE; } if (lua_reload_extensions(L)) { const char *error = lua_tostring(L, -1); ast_log(LOG_ERROR, "Error loading extensions.lua: %s\n", error); - res = AST_MODULE_LOAD_FAILURE; + res = AST_MODULE_LOAD_DECLINE; } lua_close(L); |