From 2e31d0502fd10c46fea3eb5e8f52fa3bc8e53f04 Mon Sep 17 00:00:00 2001 From: corvid Date: Sat, 9 Apr 2016 15:53:21 +0000 Subject: if we get an error (e.g. ECONNRESET) while reading, abort the read and show a status message --- src/capi.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/capi.c') diff --git a/src/capi.c b/src/capi.c index 0e561b77..43fd8a16 100644 --- a/src/capi.c +++ b/src/capi.c @@ -502,10 +502,10 @@ static int Capi_map_cache_flags(uint_t flags) status |= CAPI_IsCached; if (flags & CA_IsEmpty) status |= CAPI_IsEmpty; - if (flags & CA_GotData) - status |= CAPI_Completed; - else + if (flags & CA_InProgress) status |= CAPI_InProgress; + else + status |= CAPI_Completed; /* CAPI_Aborted is not yet used/defined */ } -- cgit v1.2.3