From: Miroslav Lichvar Date: Fri, 17 Dec 2010 16:51:00 +0000 (+0100) Subject: Fix switching offline auto_offline source to online X-Git-Tag: 1.25-pre1~15 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=323f0d187e58d0ecf2df039b5ae0bd2da100f84c;p=thirdparty%2Fchrony.git Fix switching offline auto_offline source to online --- diff --git a/ntp_core.c b/ntp_core.c index 40f77b4a..3a47821a 100644 --- a/ntp_core.c +++ b/ntp_core.c @@ -1682,6 +1682,7 @@ NCR_TakeSourceOnline(NCR_Instance inst) if (!inst->timer_running) { /* We are not already actively polling it */ LOG(LOGS_INFO, LOGF_NtpCore, "Source %s online", UTI_IPToString(&inst->remote_addr.ip_addr)); + inst->tx_count = 0; inst->local_poll = inst->minpoll; inst->poll_score = 0.5; inst->opmode = MD_ONLINE;