]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Only start the SLA thread if SLA has actually been configured.
authorRussell Bryant <russell@russellbryant.com>
Fri, 7 Mar 2008 22:51:23 +0000 (22:51 +0000)
committerRussell Bryant <russell@russellbryant.com>
Fri, 7 Mar 2008 22:51:23 +0000 (22:51 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@106895 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_meetme.c

index ad547e509941ba39992a8a41961306a7cd6263ca..e079898ea66af80fed20b67e0b1e6ba4fc364084 100644 (file)
@@ -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;
 }