[Asterisk-code-review] pbx dundi: reordered unloading of module pbx dundi (asterisk[15])

Kirsty Tyerman asteriskteam at digium.com
Mon Jun 25 22:08:59 CDT 2018


Kirsty Tyerman has uploaded this change for review. ( https://gerrit.asterisk.org/9296


Change subject: pbx_dundi: reordered unloading of module pbx_dundi
......................................................................

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
---
M pbx/pbx_dundi.c
1 file changed, 2 insertions(+), 1 deletion(-)



  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/96/9296/1

diff --git a/pbx/pbx_dundi.c b/pbx/pbx_dundi.c
index d80f660..b6f7a1a 100644
--- a/pbx/pbx_dundi.c
+++ b/pbx/pbx_dundi.c
@@ -4981,13 +4981,14 @@
 
 	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;
 }
 

-- 
To view, visit https://gerrit.asterisk.org/9296
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: 15
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic12e562cd90d8d813a9e97f302045091f59e3c05
Gerrit-Change-Number: 9296
Gerrit-PatchSet: 1
Gerrit-Owner: Kirsty Tyerman <kirsty.tyerman at boeing.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20180625/0a26ee23/attachment.html>


More information about the asterisk-code-review mailing list