From 5d06dbf97454ffde02045af8c1ef7e721f02280b Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Sun, 9 Oct 2011 17:22:57 +0000 Subject: prevent odd curl non completion behaviour svn path=/trunk/netsurf/; revision=13024 --- content/fetch.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'content/fetch.c') 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; } } -- cgit v1.2.3