From e6d754cc9664231173a549a667049ac3006e9af2 Mon Sep 17 00:00:00 2001 From: Daniel Silverstone Date: Sun, 10 Jun 2007 17:55:07 +0000 Subject: Remove a time consuming LOG(()) and add some whitespace to help me think svn path=/trunk/netsurf/; revision=3331 --- content/fetch.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'content/fetch.c') 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); } -- cgit v1.2.3