From 65fbd3c8e9cbe78d1a342acd442019a010b058c2 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 8 Mar 2019 23:39:37 +0100 Subject: Fix reading from socket-like streams and add test --- src/byte_source.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/byte_source.h b/src/byte_source.h index 4dfff70f..c12ab778 100644 --- a/src/byte_source.h +++ b/src/byte_source.h @@ -89,10 +89,10 @@ serd_byte_source_advance(SerdByteSource* source) if (source->from_stream) { if (source->page_size > 1) { if (++source->read_head == source->page_size) { - source->eof = false; st = serd_byte_source_page(source); } } else { + source->eof = false; if (!source->read_func(&source->read_byte, 1, 1, source->stream)) { source->eof = true; st = source->error_func(source->stream) ? SERD_ERR_UNKNOWN -- cgit v1.2.1