From 08177fa58119f9e67fdffb32ee20dbf05bd4fa78 Mon Sep 17 00:00:00 2001 From: James Bursa Date: Thu, 10 Jun 2004 20:41:26 +0000 Subject: [project @ 2004-06-10 20:41:26 by bursa] Add global content list. Better error handling in content code. Improved code documentation. Remove some obsolete functions. Implement debug window listing contents. svn path=/import/netsurf/; revision=951 --- 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 c8630f343..52d7effc5 100644 --- a/content/fetch.c +++ b/content/fetch.c @@ -31,9 +31,6 @@ #include "curl/curl.h" #include "netsurf/utils/config.h" #include "netsurf/content/fetch.h" -#ifdef riscos -#include "netsurf/desktop/gui.h" -#endif #include "netsurf/desktop/options.h" #ifdef WITH_AUTH #include "netsurf/desktop/401login.h" @@ -587,6 +584,11 @@ size_t fetch_curl_data(void * data, size_t size, size_t nmemb, struct fetch *f) /* send data to the caller */ LOG(("FETCH_DATA")); f->callback(FETCH_DATA, f->p, data, size * nmemb); + if (f->aborting) { + f->locked--; + f->stopped = true; + return 0; + } f->locked--; return size * nmemb; -- cgit v1.2.3