mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-20 10:14:14 +00:00
cleanup
This commit is contained in:
1 parent
3d0c245f80
commit
18cd797065
7 files changed
+36
-14
No files matched your search
@@ -597,11 +597,17 @@ void switch_core_memory_stop(void)
|
||||
{
|
||||
#ifndef INSTANTLY_DESTROY_POOLS
|
||||
switch_status_t st;
|
||||
void *pop = NULL;
|
||||
|
||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CONSOLE, "Stopping memory pool queue.\n");
|
||||
|
||||
memory_manager.pool_thread_running = 0;
|
||||
switch_thread_join(&st, pool_thread_p);
|
||||
|
||||
|
||||
while (switch_queue_trypop(memory_manager.pool_queue, &pop) == SWITCH_STATUS_SUCCESS && pop) {
|
||||
apr_pool_destroy(pop);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user