[asterisk-commits] russell: branch 1.4 r106895 - /branches/1.4/apps/app_meetme.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Mar 7 16:51:24 CST 2008


Author: russell
Date: Fri Mar  7 16:51:23 2008
New Revision: 106895

URL: http://svn.digium.com/view/asterisk?view=rev&rev=106895
Log:
Only start the SLA thread if SLA has actually been configured.

Modified:
    branches/1.4/apps/app_meetme.c

Modified: branches/1.4/apps/app_meetme.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/apps/app_meetme.c?view=diff&rev=106895&r1=106894&r2=106895
==============================================================================
--- branches/1.4/apps/app_meetme.c (original)
+++ branches/1.4/apps/app_meetme.c Fri Mar  7 16:51:23 2008
@@ -4792,7 +4792,8 @@
 
 	ast_config_destroy(cfg);
 
-	ast_pthread_create(&sla.thread, NULL, sla_thread, NULL);
+	if (!AST_LIST_EMPTY(&sla_stations) || !AST_LIST_EMPTY(&sla_stations))
+		ast_pthread_create(&sla.thread, NULL, sla_thread, NULL);
 
 	return res;
 }




More information about the asterisk-commits mailing list