summaryrefslogtreecommitdiff
path: root/content/fetch.c
diff options
context:
space:
mode:
Diffstat (limited to 'content/fetch.c')
-rw-r--r--content/fetch.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/content/fetch.c b/content/fetch.c
index f9414172b..71c7bda65 100644
--- a/content/fetch.c
+++ b/content/fetch.c
@@ -493,6 +493,7 @@ void fetch_free(struct fetch *f)
void fetch_poll(void)
{
scheme_fetcher *fetcher = fetchers;
+ struct fetch *next_fetcher;
fetch_dispatch_jobs();
@@ -500,8 +501,9 @@ void fetch_poll(void)
return; /* No point polling, there's no fetch active. */
while (fetcher != NULL) {
/* LOG(("Polling fetcher for %s", fetcher->scheme_name)); */
+ next_fetcher = fetcher->next_fetcher;
fetcher->poll_fetcher(fetcher->scheme_name);
- fetcher = fetcher->next_fetcher;
+ fetcher = next_fetcher;
}
}