summaryrefslogtreecommitdiff
path: root/content/fetch.c
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2020-02-24 10:24:23 +0000
committerDaniel Silverstone <dsilvers@digital-scurf.org>2020-02-24 10:24:23 +0000
commit97870122dd93a4603a23088f78c7d9eb266806b8 (patch)
tree3d2a99c9c0e03a9f5ffb22b1c4dbec68bb2f19ef /content/fetch.c
parent5cfe0dfffcf423c411004ac565959c686bfb24c9 (diff)
downloadnetsurf-97870122dd93a4603a23088f78c7d9eb266806b8.tar.gz
netsurf-97870122dd93a4603a23088f78c7d9eb266806b8.tar.bz2
fetch: When aborting, ensure we note this to not multi-fail
When aborting a fetch, it may be cleaned up, in which case we would otherwise send a spurious failure message too early. Instead we record that the abort has occurred to suppress such an error. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
Diffstat (limited to 'content/fetch.c')
-rw-r--r--content/fetch.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/content/fetch.c b/content/fetch.c
index 94654fc6b..331b5f430 100644
--- a/content/fetch.c
+++ b/content/fetch.c
@@ -585,6 +585,7 @@ fetch_start(nsurl *url,
void fetch_abort(struct fetch *f)
{
assert(f);
+ f->last_msg = FETCH__INTERNAL_ABORTED;
NSLOG(fetch, DEBUG,
"fetch %p, fetcher %p, url '%s'", f, f->fetcher_handle,
nsurl_access(f->url));