提交 7788f3e9 authored 作者: Christopher Rienzo's avatar Christopher Rienzo

remove unused variable in mod_http_cache

上级 b3b33ea9
......@@ -798,8 +798,6 @@ static int isUrl(const char *filename)
SWITCH_STANDARD_API(http_cache_prefetch)
{
switch_status_t status = SWITCH_STATUS_SUCCESS;
switch_memory_pool_t *lpool = NULL;
switch_memory_pool_t *pool = NULL;
char *url;
if (!isUrl(cmd)) {
......@@ -807,13 +805,6 @@ SWITCH_STANDARD_API(http_cache_prefetch)
return SWITCH_STATUS_SUCCESS;
}
if (session) {
pool = switch_core_session_get_pool(session);
} else {
switch_core_new_memory_pool(&lpool);
pool = lpool;
}
/* send to thread pool */
url = strdup(cmd);
if (switch_queue_trypush(gcache.prefetch_queue, url) != SWITCH_STATUS_SUCCESS) {
......@@ -824,10 +815,6 @@ SWITCH_STANDARD_API(http_cache_prefetch)
stream->write_function(stream, "+OK\n");
}
if (lpool) {
switch_core_destroy_memory_pool(&lpool);
}
return status;
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论