From 00ae1d20d8ef146696ca23a583252514012b1492 Mon Sep 17 00:00:00 2001 From: russell Date: Fri, 7 Mar 2008 22:51:23 +0000 Subject: [PATCH] Only start the SLA thread if SLA has actually been configured. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@106895 614ede4d-c843-0410-af14-a771ab80d22e --- apps/app_meetme.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- 2.11.4.GIT