]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
move shutdown of session to after switch_event
authorAnthony Minessale <anthm@freeswitch.org>
Thu, 10 Oct 2013 17:22:59 +0000 (22:22 +0500)
committerAnthony Minessale <anthm@freeswitch.org>
Thu, 10 Oct 2013 17:23:22 +0000 (22:23 +0500)
src/switch_core.c

index 7a8edfeec8faa9a8d559f9d476fc11d83dc7a2d0..8cefdd2e6367e38a321c88f2f3715ca8d7b24f89 100644 (file)
@@ -2614,7 +2614,6 @@ SWITCH_DECLARE(switch_status_t) switch_core_destroy(void)
                switch_nat_shutdown();
        }
        switch_xml_destroy();
-       switch_core_session_uninit();
        switch_console_shutdown();
        switch_channel_global_uninit();
 
@@ -2624,6 +2623,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_destroy(void)
        switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CONSOLE, "Finalizing Shutdown.\n");
        switch_log_shutdown();
 
+       switch_core_session_uninit();
        switch_core_unset_variables();
        switch_core_memory_stop();