move shutdown of session to after switch_event
This commit is contained in:
parent
167071cc77
commit
1716dbc214
|
@ -2600,7 +2600,6 @@ SWITCH_DECLARE(switch_status_t) switch_core_destroy(void)
|
||||||
switch_nat_shutdown();
|
switch_nat_shutdown();
|
||||||
}
|
}
|
||||||
switch_xml_destroy();
|
switch_xml_destroy();
|
||||||
switch_core_session_uninit();
|
|
||||||
switch_console_shutdown();
|
switch_console_shutdown();
|
||||||
switch_channel_global_uninit();
|
switch_channel_global_uninit();
|
||||||
|
|
||||||
|
@ -2610,6 +2609,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_destroy(void)
|
||||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CONSOLE, "Finalizing Shutdown.\n");
|
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CONSOLE, "Finalizing Shutdown.\n");
|
||||||
switch_log_shutdown();
|
switch_log_shutdown();
|
||||||
|
|
||||||
|
switch_core_session_uninit();
|
||||||
switch_core_unset_variables();
|
switch_core_unset_variables();
|
||||||
switch_core_memory_stop();
|
switch_core_memory_stop();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue