projects
/
project
/
libubox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ustream: avoid calling s->poll from a write path to avoid looping back through the...
[project/libubox.git]
/
ustream.c
diff --git
a/ustream.c
b/ustream.c
index
9c14678
..
9c61806
100644
(file)
--- a/
ustream.c
+++ b/
ustream.c
@@
-341,7
+341,7
@@
bool ustream_write_pending(struct ustream *s)
if (s->write_error)
return false;
- while (buf) {
+ while (buf
&& s->w.data_bytes
) {
struct ustream_buf *next = buf->next;
int maxlen = buf->tail - buf->data;