diff options
author | corvid <devnull@localhost> | 2016-04-09 15:53:21 +0000 |
---|---|---|
committer | corvid <devnull@localhost> | 2016-04-09 15:53:21 +0000 |
commit | 2e31d0502fd10c46fea3eb5e8f52fa3bc8e53f04 (patch) | |
tree | 1aa16917d1ef6fa96fe73a7af58411fb0cf3d3b2 /src/capi.c | |
parent | 17601c3157a73965b23789285953953a54960ce2 (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.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 */ } |