diff options
author | James Bursa <james@netsurf-browser.org> | 2004-06-10 20:41:26 +0000 |
---|---|---|
committer | James Bursa <james@netsurf-browser.org> | 2004-06-10 20:41:26 +0000 |
commit | 08177fa58119f9e67fdffb32ee20dbf05bd4fa78 (patch) | |
tree | daa1124c9304e218045d12b9d531bd35e3a51565 /content/fetch.c | |
parent | ff5e70f86538bfd5a08a0ebbb7bc484ae9b841e6 (diff) | |
download | netsurf-08177fa58119f9e67fdffb32ee20dbf05bd4fa78.tar.gz netsurf-08177fa58119f9e67fdffb32ee20dbf05bd4fa78.tar.bz2 |
[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
Diffstat (limited to 'content/fetch.c')
-rw-r--r-- | content/fetch.c | 8 |
1 files changed, 5 insertions, 3 deletions
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; |