Skip to content
Snippets Groups Projects
Commit 9a478526 authored by Russell Bryant's avatar Russell Bryant
Browse files

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
parent 927901fd
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment