mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 12:16:00 +00:00
Only start the SLA thread if SLA has actually been configured.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@106895 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -4792,6 +4792,7 @@ static int sla_load_config(void)
|
||||
|
||||
ast_config_destroy(cfg);
|
||||
|
||||
if (!AST_LIST_EMPTY(&sla_stations) || !AST_LIST_EMPTY(&sla_stations))
|
||||
ast_pthread_create(&sla.thread, NULL, sla_thread, NULL);
|
||||
|
||||
return res;
|
||||
|
Reference in New Issue
Block a user