Skip to content

Commit b1c292e

Browse files
SWPTP-1591: Allow disabling chrony clock control while in ntp-disabled state
1 parent 69c296a commit b1c292e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/crny/sfptpd_crny_module.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1812,7 +1812,7 @@ static void ntp_on_clock_control_change(crny_module_t *ntp, struct ntp_state *ne
18121812

18131813
/* If we have control, try to stop NTP */
18141814
if (new_state->sys_info.clock_control_enabled != clock_control &&
1815-
(new_state->state != SYNC_MODULE_STATE_DISABLED)) {
1815+
(!clock_control || new_state->state != SYNC_MODULE_STATE_DISABLED)) {
18161816
INFO("crny: attempting to restore chronyd clock control state...\n");
18171817
rc = crny_clock_control(ntp, clock_control);
18181818
if (rc == 0) {

0 commit comments

Comments
 (0)