mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 17:38:59 +00:00
make events queue in the bg
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@152 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -1549,16 +1549,6 @@ SWITCH_DECLARE(switch_status) switch_core_init(void)
|
||||
SWITCH_DECLARE(switch_status) switch_core_destroy(void)
|
||||
{
|
||||
|
||||
switch_event_shutdown();
|
||||
switch_console_printf(SWITCH_CHANNEL_CONSOLE, "Closing Event Engine.\n");
|
||||
|
||||
if (runtime.memory_pool) {
|
||||
apr_pool_destroy(runtime.memory_pool);
|
||||
apr_terminate();
|
||||
switch_console_printf(SWITCH_CHANNEL_CONSOLE, "Unallocated memory pool.\n");
|
||||
|
||||
}
|
||||
|
||||
#ifdef EMBED_PERL
|
||||
if (runtime.my_perl) {
|
||||
perl_destruct(runtime.my_perl);
|
||||
@@ -1568,6 +1558,15 @@ SWITCH_DECLARE(switch_status) switch_core_destroy(void)
|
||||
}
|
||||
#endif
|
||||
|
||||
switch_console_printf(SWITCH_CHANNEL_CONSOLE, "Closing Event Engine.\n");
|
||||
switch_event_shutdown();
|
||||
|
||||
if (runtime.memory_pool) {
|
||||
switch_console_printf(SWITCH_CHANNEL_CONSOLE, "Unallocating memory pool.\n");
|
||||
apr_pool_destroy(runtime.memory_pool);
|
||||
apr_terminate();
|
||||
}
|
||||
|
||||
return SWITCH_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user