summaryrefslogtreecommitdiff
path: root/content/fetch.c
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@netsurf-browser.org>2007-06-10 17:55:07 +0000
committerDaniel Silverstone <dsilvers@netsurf-browser.org>2007-06-10 17:55:07 +0000
commite6d754cc9664231173a549a667049ac3006e9af2 (patch)
treeb99f536d46a759a9f4017a5c75c5b413eef1a28b /content/fetch.c
parent1dd7e97eb3f2cd317ef64fa9c054aacba6499215 (diff)
downloadnetsurf-e6d754cc9664231173a549a667049ac3006e9af2.tar.gz
netsurf-e6d754cc9664231173a549a667049ac3006e9af2.tar.bz2
Remove a time consuming LOG(()) and add some whitespace to help me think
svn path=/trunk/netsurf/; revision=3331
Diffstat (limited to 'content/fetch.c')
-rw-r--r--content/fetch.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/content/fetch.c b/content/fetch.c
index 38fc2c841..e18893499 100644
--- a/content/fetch.c
+++ b/content/fetch.c
@@ -427,7 +427,7 @@ void fetch_poll(void)
if (!fetch_active)
return; /* No point polling, there's no fetch active. */
while (fetcher != NULL) {
- LOG(("Polling fetcher for %s", fetcher->scheme_name));
+ /* LOG(("Polling fetcher for %s", fetcher->scheme_name)); */
fetcher->poll_fetcher(fetcher->scheme_name);
fetcher = fetcher->next_fetcher;
}
@@ -510,12 +510,15 @@ fetch_can_be_freed(struct fetch *fetch)
{
/* Go ahead and free the fetch properly now */
LOG(("Fetch %p, fetcher %p can be freed", fetch, fetch->fetcher_handle));
+
if (fetch->fetch_is_active) {
RING_REMOVE(fetch_ring, fetch);
} else {
RING_REMOVE(queue_ring, fetch);
}
+
fetch_active = (fetch_ring != NULL);
+
fetch_free(fetch);
}