remove unused variable in mod_http_cache
This commit is contained in:
parent
b3b33ea995
commit
7788f3e9c4
|
@ -798,8 +798,6 @@ static int isUrl(const char *filename)
|
||||||
SWITCH_STANDARD_API(http_cache_prefetch)
|
SWITCH_STANDARD_API(http_cache_prefetch)
|
||||||
{
|
{
|
||||||
switch_status_t status = SWITCH_STATUS_SUCCESS;
|
switch_status_t status = SWITCH_STATUS_SUCCESS;
|
||||||
switch_memory_pool_t *lpool = NULL;
|
|
||||||
switch_memory_pool_t *pool = NULL;
|
|
||||||
char *url;
|
char *url;
|
||||||
|
|
||||||
if (!isUrl(cmd)) {
|
if (!isUrl(cmd)) {
|
||||||
|
@ -807,13 +805,6 @@ SWITCH_STANDARD_API(http_cache_prefetch)
|
||||||
return SWITCH_STATUS_SUCCESS;
|
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 */
|
/* send to thread pool */
|
||||||
url = strdup(cmd);
|
url = strdup(cmd);
|
||||||
if (switch_queue_trypush(gcache.prefetch_queue, url) != SWITCH_STATUS_SUCCESS) {
|
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");
|
stream->write_function(stream, "+OK\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (lpool) {
|
|
||||||
switch_core_destroy_memory_pool(&lpool);
|
|
||||||
}
|
|
||||||
|
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue