[svn-commits] russell: trunk r88371 - /trunk/pbx/pbx_lua.c
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Fri Nov 2 16:36:37 CDT 2007
Author: russell
Date: Fri Nov 2 16:36:37 2007
New Revision: 88371
URL: http://svn.digium.com/view/asterisk?view=rev&rev=88371
Log:
Don't kill asterisk if extensions.lua is not present.
Modified:
trunk/pbx/pbx_lua.c
Modified: trunk/pbx/pbx_lua.c
URL: http://svn.digium.com/view/asterisk/trunk/pbx/pbx_lua.c?view=diff&rev=88371&r1=88370&r2=88371
==============================================================================
--- trunk/pbx/pbx_lua.c (original)
+++ trunk/pbx/pbx_lua.c Fri Nov 2 16:36:37 2007
@@ -1277,13 +1277,13 @@
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);
More information about the svn-commits
mailing list