[asterisk-commits] pabelanger: branch 1.4 r296670 - /branches/1.4/channels/chan_iax2.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Nov 29 16:49:43 CST 2010
Author: pabelanger
Date: Mon Nov 29 16:49:39 2010
New Revision: 296670
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=296670
Log:
Make sure nothing else is needed before destroying the scheduler.
Modified:
branches/1.4/channels/chan_iax2.c
Modified: branches/1.4/channels/chan_iax2.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.4/channels/chan_iax2.c?view=diff&rev=296670&r1=296669&r2=296670
==============================================================================
--- branches/1.4/channels/chan_iax2.c (original)
+++ branches/1.4/channels/chan_iax2.c Mon Nov 29 16:49:39 2010
@@ -12610,7 +12610,6 @@
ast_channel_unregister(&iax2_tech);
delete_users();
iax_provision_unload();
- sched_context_destroy(sched);
reload_firmware(1);
ast_mutex_destroy(&waresl.lock);
@@ -12622,12 +12621,13 @@
ao2_ref(peers, -1);
ao2_ref(users, -1);
ao2_ref(iax_peercallno_pvts, -1);
- ao2_ref(iax_transfercallno_pvts, -1);
+ ao2_ref(iax_transfercallno_pvts, -1);
ao2_ref(peercnts, -1);
ao2_ref(callno_limits, -1);
ao2_ref(calltoken_ignores, -1);
ao2_ref(callno_pool, -1);
ao2_ref(callno_pool_trunk, -1);
+ sched_context_destroy(sched);
return 0;
}
More information about the asterisk-commits
mailing list