summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--stream/cache.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/stream/cache.c b/stream/cache.c
index 0ed371806d..874cdf4a8c 100644
--- a/stream/cache.c
+++ b/stream/cache.c
@@ -296,7 +296,8 @@ static void cache_fill(struct priv *s)
done: ;
bool prev_eof = s->eof;
- s->eof = len <= 0;
+ if (read_attempted)
+ s->eof = len <= 0;
if (!prev_eof && s->eof) {
s->eof_pos = stream_tell(s->stream);
s->speed_start = 0;