mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-04 06:25:06 -05:00
sources: ignore inactive sources in special mode ending
This commit is contained in:
4
main.c
4
main.c
@@ -150,8 +150,8 @@ post_init_ntp_hook(void *anything)
|
||||
RCL_StartRefclocks();
|
||||
|
||||
/* Special modes can end only when sources update their reachability.
|
||||
Give up immediatelly if there are no sources. */
|
||||
if (ref_mode != REF_ModeNormal && !SRC_ReadNumberOfSources()) {
|
||||
Give up immediatelly if there are no active sources. */
|
||||
if (ref_mode != REF_ModeNormal && !SRC_ActiveSources()) {
|
||||
REF_SetUnsynchronised();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user