aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-03-08 23:39:37 +0100
committerDavid Robillard <d@drobilla.net>2020-10-27 13:13:58 +0100
commitfd965bf19c00552c4e9268eb73af4eda39437980 (patch)
tree77d6f35bfef4b3c098259798c1e9044224f4b8e5
parent2aca9f4bfbf8b32545c70b91ede7c5123ef67121 (diff)
downloadserd-fd965bf19c00552c4e9268eb73af4eda39437980.tar.gz
serd-fd965bf19c00552c4e9268eb73af4eda39437980.tar.bz2
serd-fd965bf19c00552c4e9268eb73af4eda39437980.zip
WIP: Fix reading from socket-like streams
-rw-r--r--src/byte_source.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/byte_source.h b/src/byte_source.h
index 6da9df5d..d0a73fb9 100644
--- a/src/byte_source.h
+++ b/src/byte_source.h
@@ -96,6 +96,7 @@ serd_byte_source_advance(SerdByteSource* source)
source->eof = true;
}
} 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