mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-04 15:45:07 -05:00
Retry name resolving before marking sources online
This commit is contained in:
@@ -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<N_RECORDS; i++) {
|
||||
if (records[i].remote_addr) {
|
||||
@@ -396,13 +403,6 @@ NSR_TakeSourcesOnline(IPAddr *mask, IPAddr *address)
|
||||
}
|
||||
}
|
||||
|
||||
if (resolving_interval) {
|
||||
/* Try to resolve any unresolved sources now */
|
||||
SCH_RemoveTimeout(resolving_id);
|
||||
resolving_interval--;
|
||||
resolve_sources(NULL);
|
||||
}
|
||||
|
||||
return any;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user