Verified Commit 6a5ae34e authored by Rahix's avatar Rahix
Browse files

fix(stream): Don't block when reading



Signed-off-by: Rahix's avatarRahix <rahix@rahix.de>
parent 06fa0fc4
......@@ -67,7 +67,7 @@ int epic_stream_read(int sd, void *buf, size_t count)
size_t i;
for (i = 0; i < count; i += stream->item_size) {
if (!xQueueReceive(stream->queue, buf + i, STREAM_QUEUE_WAIT)) {
if (!xQueueReceive(stream->queue, buf + i, 0)) {
break;
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment