sched: fix handling of signals after finalization
Don't require the scheduler to be initialized in SCH_QuitProgram(). This fixes a crash when a signal is received between scheduler finalization and chronyd exit.
This commit is contained in:
parent
26b87b844d
commit
71b7e689c0
1 changed files with 0 additions and 1 deletions
1
sched.c
1
sched.c
|
@ -719,7 +719,6 @@ SCH_MainLoop(void)
|
|||
void
|
||||
SCH_QuitProgram(void)
|
||||
{
|
||||
assert(initialised);
|
||||
need_to_exit = 1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue