diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-03-07 22:51:23 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-03-07 22:51:23 +0000 |
commit | 6def40f01dda472968e36092ff681a6085cb0f69 (patch) | |
tree | 463fa7c2e821423cb05fbf9bea3e0ada5acfbbeb /apps/app_meetme.c | |
parent | c3cfe129e563262b45c731c1787e0e56191ac55a (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/app_meetme.c')
-rw-r--r-- | apps/app_meetme.c | 3 |
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; } |