let's actually use a variable scheduler event...
authorKevin P. Fleming <kpfleming@digium.com>
Tue, 8 Nov 2005 01:32:40 +0000 (01:32 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Tue, 8 Nov 2005 01:32:40 +0000 (01:32 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7008 65c4cc65-6c06-0410-ace0-fbb531ad65f3

dnsmgr.c

index 2873323..204033e 100755 (executable)
--- a/dnsmgr.c
+++ b/dnsmgr.c
@@ -195,7 +195,7 @@ void dnsmgr_start_refresh(void)
 {
        if (refresh_sched > -1) {
                ast_sched_del(sched, refresh_sched);
-               refresh_sched = ast_sched_add(sched, 100, refresh_list, &master_refresh_info);
+               refresh_sched = ast_sched_add_variable(sched, 100, refresh_list, &master_refresh_info, 1);
        }
 }
 
@@ -350,7 +350,7 @@ static int do_reload(int loading)
                else {
                        ast_cli_register(&cli_refresh);
                        /* make a background refresh happen right away */
-                       refresh_sched = ast_sched_add(sched, 100, refresh_list, &master_refresh_info);
+                       refresh_sched = ast_sched_add_variable(sched, 100, refresh_list, &master_refresh_info, 1);
                        res = 0;
                }
        }