[asterisk-commits] oej: trunk r176513 - /trunk/main/config.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Feb 17 09:18:55 CST 2009


Author: oej
Date: Tue Feb 17 09:18:55 2009
New Revision: 176513

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=176513
Log:
If there are no realtime engines, there's no reason to check for realtime families

Modified:
    trunk/main/config.c

Modified: trunk/main/config.c
URL: http://svn.digium.com/svn-view/asterisk/trunk/main/config.c?view=diff&rev=176513&r1=176512&r2=176513
==============================================================================
--- trunk/main/config.c (original)
+++ trunk/main/config.c Tue Feb 17 09:18:55 2009
@@ -2137,6 +2137,9 @@
 int ast_check_realtime(const char *family)
 {
 	struct ast_config_engine *eng;
+	if (!ast_realtime_enabled()) {
+		return 0;	/* There are no engines at all so fail early */
+	}
 
 	eng = find_engine(family, NULL, 0, NULL, 0);
 	if (eng)




More information about the asterisk-commits mailing list