summaryrefslogtreecommitdiff
path: root/content/fetch.c
diff options
context:
space:
mode:
Diffstat (limited to 'content/fetch.c')
-rw-r--r--content/fetch.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/content/fetch.c b/content/fetch.c
index e6b36f341..693ea1148 100644
--- a/content/fetch.c
+++ b/content/fetch.c
@@ -514,10 +514,12 @@ void fetch_poll(void)
if (!fetch_active)
return; /* No point polling, there's no fetch active. */
while (fetcher != NULL) {
- /* LOG(("Polling fetcher for %s",
- lwc_string_data(fetcher->scheme_name))); */
next_fetcher = fetcher->next_fetcher;
- fetcher->poll_fetcher(fetcher->scheme_name);
+ if (fetcher->poll_fetcher != NULL) {
+ /* LOG(("Polling fetcher for %s",
+ lwc_string_data(fetcher->scheme_name))); */
+ fetcher->poll_fetcher(fetcher->scheme_name);
+ }
fetcher = next_fetcher;
}
}