unloading modules has to be the last thing to do
git-svn-id: http://svn.openzap.org/svn/openzap/branches/sangoma_boost@1065 a93c3328-9c30-0410-af19-c9cd2b2d52af
This commit is contained in:
parent
dd39a902e6
commit
174b1a3622
|
@ -3563,8 +3563,6 @@ FT_DECLARE(ftdm_status_t) ftdm_global_destroy(void)
|
|||
|
||||
ftdm_span_close_all();
|
||||
|
||||
ftdm_unload_modules();
|
||||
|
||||
ftdm_mutex_lock(globals.span_mutex);
|
||||
for (sp = globals.spans; sp;) {
|
||||
ftdm_span_t *cur_span = sp;
|
||||
|
@ -3585,6 +3583,8 @@ FT_DECLARE(ftdm_status_t) ftdm_global_destroy(void)
|
|||
globals.spans = NULL;
|
||||
ftdm_mutex_unlock(globals.span_mutex);
|
||||
|
||||
ftdm_unload_modules();
|
||||
|
||||
ftdm_mutex_lock(globals.mutex);
|
||||
hashtable_destroy(globals.interface_hash);
|
||||
hashtable_destroy(globals.module_hash);
|
||||
|
|
Loading…
Reference in New Issue