]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
Fix switching offline auto_offline source to online
authorMiroslav Lichvar <mlichvar@redhat.com>
Fri, 17 Dec 2010 16:51:00 +0000 (17:51 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Fri, 17 Dec 2010 17:09:10 +0000 (18:09 +0100)
ntp_core.c

index 40f77b4ab6ec0841ddd71809d77ae8a16e250ba3..3a47821ac8fe95734c82006629014ecc0e9366c6 100644 (file)
@@ -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;