summaryrefslogtreecommitdiff
path: root/content
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2011-09-26 15:22:38 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2011-09-26 15:22:38 +0000
commit393b1afd4f09db7205c5e232c0c477ad3bb1ea32 (patch)
tree1c8c24f7aeba9aad10939d5e836770083006b481 /content
parent75d61bca44e57c9dd97c0f2b96952298fdeff71e (diff)
downloadnetsurf-393b1afd4f09db7205c5e232c0c477ad3bb1ea32.tar.gz
netsurf-393b1afd4f09db7205c5e232c0c477ad3bb1ea32.tar.bz2
Disable fetch debug loops when not debugging.
svn path=/trunk/netsurf/; revision=12890
Diffstat (limited to 'content')
-rw-r--r--content/fetch.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/content/fetch.c b/content/fetch.c
index 6cbe49923..3ef441e7b 100644
--- a/content/fetch.c
+++ b/content/fetch.c
@@ -362,8 +362,10 @@ failed:
void fetch_dispatch_jobs(void)
{
int all_active, all_queued;
+#ifdef DEBUG_FETCH_VERBOSE
struct fetch *q;
struct fetch *f;
+#endif
if (!queue_ring)
return; /* Nothing to do, the queue is empty */
@@ -372,26 +374,22 @@ void fetch_dispatch_jobs(void)
#ifdef DEBUG_FETCH_VERBOSE
LOG(("queue_ring %i, fetch_ring %i", all_queued, all_active));
-#endif
q = queue_ring;
if (q) {
do {
-#ifdef DEBUG_FETCH_VERBOSE
LOG(("queue_ring: %s", q->url));
-#endif
q = q->r_next;
} while (q != queue_ring);
}
f = fetch_ring;
if (f) {
do {
-#ifdef DEBUG_FETCH_VERBOSE
LOG(("fetch_ring: %s", f->url));
-#endif
f = f->r_next;
} while (f != fetch_ring);
}
+#endif
while ( all_queued && all_active < option_max_fetchers ) {
/*LOG(("%d queued, %d fetching", all_queued, all_active));*/