mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-05 22:35:06 -05:00
main: delay switching to normal mode after initstepslew
This prevents polling interval shorter than the burst interval if some configured servers were used also for initstepslew.
This commit is contained in:
7
main.c
7
main.c
@@ -182,9 +182,10 @@ reference_mode_end(int result)
|
|||||||
SCH_QuitProgram();
|
SCH_QuitProgram();
|
||||||
break;
|
break;
|
||||||
case REF_ModeInitStepSlew:
|
case REF_ModeInitStepSlew:
|
||||||
/* post_init_ntp_hook removes sources and a source call is
|
/* Switch to the normal mode, the delay is used to prevent polling
|
||||||
on the stack here, so it can't be called directly */
|
interval shorter than the burst interval if some configured servers
|
||||||
SCH_AddTimeoutByDelay(0.0, post_init_ntp_hook, NULL);
|
were used also for initstepslew */
|
||||||
|
SCH_AddTimeoutByDelay(2.0, post_init_ntp_hook, NULL);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
assert(0);
|
assert(0);
|
||||||
|
|||||||
Reference in New Issue
Block a user