From: Nathan Neulinger Date: Tue, 5 Aug 2014 16:10:47 +0000 (-0500) Subject: mod_skinny: CID:1060950 remove some dead debugging code X-Git-Tag: v1.4.8~7^2~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bb52587b81c70017b2608a343a3fb706237e9bf6;p=thirdparty%2Ffreeswitch.git mod_skinny: CID:1060950 remove some dead debugging code --- diff --git a/src/mod/endpoints/mod_skinny/mod_skinny.c b/src/mod/endpoints/mod_skinny/mod_skinny.c index afbeb69325..4c7443cb23 100644 --- a/src/mod/endpoints/mod_skinny/mod_skinny.c +++ b/src/mod/endpoints/mod_skinny/mod_skinny.c @@ -1710,7 +1710,6 @@ static void *SWITCH_THREAD_FUNC listener_run(switch_thread_t *thread, void *obj) switch_status_t status; skinny_message_t *request = NULL; skinny_profile_t *profile; - int destroy_pool = 1; switch_assert(listener); assert(listener->profile); @@ -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"); } - if(destroy_pool == 0) { - goto no_destroy_pool; - } if (listener->pool) { switch_memory_pool_t *pool = listener->pool; switch_core_destroy_memory_pool(&pool); } -no_destroy_pool: - switch_mutex_lock(profile->listener_mutex); profile->listener_threads--; switch_mutex_unlock(profile->listener_mutex);