summaryrefslogtreecommitdiff
path: root/content
diff options
context:
space:
mode:
Diffstat (limited to 'content')
-rw-r--r--content/fetch.c1
-rw-r--r--content/fetch.h6
2 files changed, 7 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));
diff --git a/content/fetch.h b/content/fetch.h
index 817d5e2f8..fdb3bfbd8 100644
--- a/content/fetch.h
+++ b/content/fetch.h
@@ -61,6 +61,12 @@ typedef enum {
#define FETCH_MIN_FINISHED_MSG FETCH_FINISHED
/**
+ * This message is actually an internal message used to indicate
+ * that a fetch was aborted. Do not send this, nor expect it.
+ */
+#define FETCH__INTERNAL_ABORTED FETCH_ERROR
+
+/**
* Fetcher message data
*/
typedef struct fetch_msg {