mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-04 03:45:07 -05:00
reference: don't report synchronized status after unknown step
The source handler resets SST instances on an unknown step, which
makes the sources unselectable, but SRC_SelectSource() doesn't call
REF_SetUnsynchronised() when no source is selectable.
Handle the step in the reference handler.
Fixes: 049eae661a ("sources: keep synchronized status with unreachable/unselectable sources")
This commit is contained in:
@@ -168,6 +168,7 @@ handle_slew(struct timespec *raw,
|
|||||||
|
|
||||||
if (change_type == LCL_ChangeUnknownStep) {
|
if (change_type == LCL_ChangeUnknownStep) {
|
||||||
last_ref_update = 0.0;
|
last_ref_update = 0.0;
|
||||||
|
REF_SetUnsynchronised();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* When the clock was stepped, check if that doesn't change our leap status
|
/* When the clock was stepped, check if that doesn't change our leap status
|
||||||
|
|||||||
@@ -1128,7 +1128,7 @@ slew_sources(struct timespec *raw, struct timespec *cooked, double dfreq,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (change_type == LCL_ChangeUnknownStep) {
|
if (change_type == LCL_ChangeUnknownStep) {
|
||||||
/* After resetting no source is selectable, set reference unsynchronised */
|
/* Update selection status */
|
||||||
SRC_SelectSource(NULL);
|
SRC_SelectSource(NULL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user