]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
sources: reset reachability for offline sources
authorMiroslav Lichvar <mlichvar@redhat.com>
Fri, 17 Oct 2014 15:22:00 +0000 (17:22 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Mon, 20 Oct 2014 10:19:36 +0000 (12:19 +0200)
With the recent change allowing unreachable sources to remain selected,
offline sources will now be selectable only for some time, similarly to
online unreachable sources.

sources.c

index 14e55d3c7c3e6c376d234e40aec723a1a70c13b1..bac56cf4d28d1ae335192e4370ad9951662ba0ed 100644 (file)
--- a/sources.c
+++ b/sources.c
@@ -405,13 +405,9 @@ SRC_UpdateReachability(SRC_Instance inst, int reachable)
 void
 SRC_ResetReachability(SRC_Instance inst)
 {
-  /* This should be disabled until source selection is modified to keep
-     a peer selected even when not reachable */
-#if 0
   inst->reachability = 0;
   inst->reachability_size = 0;
   SRC_UpdateReachability(inst, 0);
-#endif
 }
 
 /* ================================================== */