From 97870122dd93a4603a23088f78c7d9eb266806b8 Mon Sep 17 00:00:00 2001 From: Daniel Silverstone Date: Mon, 24 Feb 2020 10:24:23 +0000 Subject: 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 --- content/fetch.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'content/fetch.h') diff --git a/content/fetch.h b/content/fetch.h index 817d5e2f8..fdb3bfbd8 100644 --- a/content/fetch.h +++ b/content/fetch.h @@ -60,6 +60,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 */ -- cgit v1.2.3