mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-10 11:50:53 +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:
1 parent
e16f28d529
commit
03533ad0f3
10 files changed
+1407
-688
No files matched your search
+9
-10
@@ -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