Fix switching offline auto_offline source to online

This commit is contained in:
Miroslav Lichvar 2010-12-17 17:51:00 +01:00
parent 0078705bbe
commit 323f0d187e

View 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;