pbx_dundi: reordered unloading of module pbx_dundi

Destroy scheduler after peers are pruned to stop dundi crashing when
unloading module.

ASTERISK-26987
Reported-by: Kirsty Tyerman

Change-Id: Ic12e562cd90d8d813a9e97f302045091f59e3c05
This commit is contained in:
Kirsty Tyerman
2018-06-26 13:08:07 +10:00
parent 5f517bacd0
commit 4b9bf4f5e0

View File

@@ -4982,13 +4982,14 @@ static int unload_module(void)
close(netsocket);
io_context_destroy(io);
ast_sched_context_destroy(sched);
mark_mappings();
prune_mappings();
mark_peers();
prune_peers();
ast_sched_context_destroy(sched);
return 0;
}