From 323f0d187e58d0ecf2df039b5ae0bd2da100f84c Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Fri, 17 Dec 2010 17:51:00 +0100 Subject: [PATCH] Fix switching offline auto_offline source to online --- ntp_core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ntp_core.c b/ntp_core.c index 40f77b4..3a47821 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;