From: Miroslav Lichvar Date: Fri, 17 Oct 2014 15:22:00 +0000 (+0200) Subject: sources: reset reachability for offline sources X-Git-Tag: 2.0-pre1~62 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5d7df6911673d92e60c0f017a602a4bd10776bff;p=thirdparty%2Fchrony.git sources: reset reachability for offline sources 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. --- diff --git a/sources.c b/sources.c index 14e55d3c..bac56cf4 100644 --- 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 } /* ================================================== */