ntp: remove resolving timeout in finalization
Don't assume NSR_Finalise() can be called only on exit when the scheduler is finalized.
This commit is contained in:
parent
6661a61486
commit
e0b75b87bf
1 changed files with 2 additions and 0 deletions
|
@ -187,6 +187,7 @@ void
|
|||
NSR_Initialise(void)
|
||||
{
|
||||
n_sources = 0;
|
||||
resolving_id = 0;
|
||||
initialised = 1;
|
||||
|
||||
records = ARR_CreateInstance(sizeof (SourceRecord));
|
||||
|
@ -209,6 +210,7 @@ NSR_Finalise(void)
|
|||
ARR_DestroyInstance(records);
|
||||
ARR_DestroyInstance(pools);
|
||||
|
||||
SCH_RemoveTimeout(resolving_id);
|
||||
while (unresolved_sources)
|
||||
remove_unresolved_source(unresolved_sources);
|
||||
|
||||
|
|
Loading…
Reference in a new issue