projects
/
project
/
libubox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ustream-fd: stop trying to read when s->read_blocked is set.
[project/libubox.git]
/
ustream-fd.c
diff --git
a/ustream-fd.c
b/ustream-fd.c
index
daef499
..
5ffca53
100644
(file)
--- a/
ustream-fd.c
+++ b/
ustream-fd.c
@@
-50,6
+50,9
@@
static void ustream_fd_read_pending(struct ustream_fd *sf, bool *more)
char *buf;
do {
+ if (s->read_blocked)
+ break;
+
buf = ustream_reserve(s, 1, &buflen);
if (!buf)
break;