提交 bb52587b authored 作者: Nathan Neulinger's avatar Nathan Neulinger

mod_skinny: CID:1060950 remove some dead debugging code

上级 19605332
...@@ -1710,7 +1710,6 @@ static void *SWITCH_THREAD_FUNC listener_run(switch_thread_t *thread, void *obj) ...@@ -1710,7 +1710,6 @@ static void *SWITCH_THREAD_FUNC listener_run(switch_thread_t *thread, void *obj)
switch_status_t status; switch_status_t status;
skinny_message_t *request = NULL; skinny_message_t *request = NULL;
skinny_profile_t *profile; skinny_profile_t *profile;
int destroy_pool = 1;
switch_assert(listener); switch_assert(listener);
assert(listener->profile); assert(listener->profile);
...@@ -1803,16 +1802,11 @@ static void *SWITCH_THREAD_FUNC listener_run(switch_thread_t *thread, void *obj) ...@@ -1803,16 +1802,11 @@ static void *SWITCH_THREAD_FUNC listener_run(switch_thread_t *thread, void *obj)
skinny_log_l_msg(listener, SWITCH_LOG_DEBUG, "Communication Closed\n"); skinny_log_l_msg(listener, SWITCH_LOG_DEBUG, "Communication Closed\n");
} }
if(destroy_pool == 0) {
goto no_destroy_pool;
}
if (listener->pool) { if (listener->pool) {
switch_memory_pool_t *pool = listener->pool; switch_memory_pool_t *pool = listener->pool;
switch_core_destroy_memory_pool(&pool); switch_core_destroy_memory_pool(&pool);
} }
no_destroy_pool:
switch_mutex_lock(profile->listener_mutex); switch_mutex_lock(profile->listener_mutex);
profile->listener_threads--; profile->listener_threads--;
switch_mutex_unlock(profile->listener_mutex); switch_mutex_unlock(profile->listener_mutex);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论