aboutsummaryrefslogtreecommitdiff
path: root/src/capi.c
diff options
context:
space:
mode:
authorcorvid <devnull@localhost>2016-04-09 15:53:21 +0000
committercorvid <devnull@localhost>2016-04-09 15:53:21 +0000
commit2e31d0502fd10c46fea3eb5e8f52fa3bc8e53f04 (patch)
tree1aa16917d1ef6fa96fe73a7af58411fb0cf3d3b2 /src/capi.c
parent17601c3157a73965b23789285953953a54960ce2 (diff)
if we get an error (e.g. ECONNRESET) while reading, abort the read and show a status message
Diffstat (limited to 'src/capi.c')
-rw-r--r--src/capi.c6
1 files changed, 3 insertions, 3 deletions
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 */
}