]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Forces KRT rescan on syncer startup with multi syncer config.
authorOndrej Zajicek <santiago@crfreenet.org>
Tue, 15 Oct 2013 08:57:57 +0000 (10:57 +0200)
committerOndrej Zajicek <santiago@crfreenet.org>
Tue, 15 Oct 2013 08:57:57 +0000 (10:57 +0200)
Thanks to  Sergey Popovich for the patch.

sysdep/unix/krt.c

index 6de6077eb5791ab17460796c3839f13e0c9da342..57cfe5a48fd740e56728f4314548bdf4cac62bfd 100644 (file)
@@ -846,12 +846,11 @@ static void
 krt_scan_timer_start(struct krt_proto *p)
 {
   if (!krt_scan_count)
-  {
     krt_scan_timer = tm_new_set(krt_pool, krt_scan, NULL, 0, KRT_CF->scan_time);
-    tm_start(krt_scan_timer, 0);
-  }
 
   krt_scan_count++;
+
+  tm_start(krt_scan_timer, 0);
 }
 
 static void