mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-16 09:52:24 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user