From: Miroslav Lichvar Date: Wed, 28 Apr 2010 13:44:07 +0000 (+0200) Subject: Retry name resolving before marking sources online X-Git-Tag: 1.25-pre1~86 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=83da131e9901e424d5898d5d07e9ef31727b29eb;p=thirdparty%2Fchrony.git Retry name resolving before marking sources online --- diff --git a/ntp_sources.c b/ntp_sources.c index b7151f22..01a1b045 100644 --- a/ntp_sources.c +++ b/ntp_sources.c @@ -385,6 +385,13 @@ NSR_TakeSourcesOnline(IPAddr *mask, IPAddr *address) int i; int any; + /* Try to resolve unresolved sources now */ + if (resolving_interval) { + SCH_RemoveTimeout(resolving_id); + resolving_interval--; + resolve_sources(NULL); + } + any = 0; for (i=0; i