[asterisk-commits] russell: branch group/newcdr r202003 - /team/group/newcdr/main/cel.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Jun 19 15:42:17 CDT 2009


Author: russell
Date: Fri Jun 19 15:42:13 2009
New Revision: 202003

URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=202003
Log:
Detect CLI registration failure

Modified:
    team/group/newcdr/main/cel.c

Modified: team/group/newcdr/main/cel.c
URL: http://svn.asterisk.org/svn-view/asterisk/team/group/newcdr/main/cel.c?view=diff&rev=202003&r1=202002&r2=202003
==============================================================================
--- team/group/newcdr/main/cel.c (original)
+++ team/group/newcdr/main/cel.c Fri Jun 19 15:42:13 2009
@@ -595,9 +595,11 @@
 {
 	int res;
 
-	ast_cli_register(&cli_status);
-
-	res = do_reload();
+	res = ast_cli_register(&cli_status);
+
+	if (!res) {
+		res = do_reload();
+	}
 
 	return res;
 }




More information about the asterisk-commits mailing list