[asterisk-commits] russell: trunk r88376 - /trunk/pbx/pbx_lua.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Nov 2 16:39:36 CDT 2007


Author: russell
Date: Fri Nov  2 16:39:36 2007
New Revision: 88376

URL: http://svn.digium.com/view/asterisk?view=rev&rev=88376
Log:
propagate the DECLINE return value back to the loader

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=88376&r1=88375&r2=88376
==============================================================================
--- trunk/pbx/pbx_lua.c (original)
+++ trunk/pbx/pbx_lua.c Fri Nov  2 16:39:36 2007
@@ -1304,12 +1304,14 @@
 
 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;




More information about the asterisk-commits mailing list