aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2008-03-07 22:51:23 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2008-03-07 22:51:23 +0000
commit6def40f01dda472968e36092ff681a6085cb0f69 (patch)
tree463fa7c2e821423cb05fbf9bea3e0ada5acfbbeb /apps
parentc3cfe129e563262b45c731c1787e0e56191ac55a (diff)
Only start the SLA thread if SLA has actually been configured.
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@106895 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r--apps/app_meetme.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/app_meetme.c b/apps/app_meetme.c
index ad547e509..e079898ea 100644
--- a/apps/app_meetme.c
+++ b/apps/app_meetme.c
@@ -4792,7 +4792,8 @@ static int sla_load_config(void)
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;
}