main: cancel clock correction before dumping sources

On exit, cancel the remaining clock correction before measurements are
saved to dumpdir to fix them for the state in which chronyd will start
again.
This commit is contained in:
Miroslav Lichvar
2021-02-03 10:25:41 +01:00
parent a2372b0c3a
commit 3cef7f975c
3 changed files with 17 additions and 0 deletions

1
main.c
View File

@@ -104,6 +104,7 @@ MAI_CleanupAndExit(void)
{
if (!initialised) exit(exit_status);
LCL_CancelOffsetCorrection();
SRC_DumpSources();
/* Don't update clock when removing sources */