unset logger on global destroy

This commit is contained in:
Anthony Minessale 2012-04-02 15:00:35 -05:00
parent 61fe806c0a
commit 972504a3ca
1 changed files with 2 additions and 0 deletions

View File

@ -5829,6 +5829,8 @@ FT_DECLARE(ftdm_status_t) ftdm_global_destroy(void)
/* destroy signaling and io modules */
ftdm_unload_modules();
ftdm_global_set_logger( NULL );
/* finally destroy the globals */
ftdm_mutex_lock(globals.mutex);
ftdm_sched_destroy(&globals.timingsched);