projects
/
oweals
/
libubox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9386d07
)
ustream-fd: readability change.
author
Yousong Zhou
<yszhou4tech@gmail.com>
Thu, 4 Jun 2015 13:41:41 +0000
(21:41 +0800)
committer
Felix Fietkau
<nbd@openwrt.org>
Sun, 14 Jun 2015 13:16:10 +0000
(15:16 +0200)
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
ustream-fd.c
patch
|
blob
|
history
diff --git
a/ustream-fd.c
b/ustream-fd.c
index bc44d4a825425f49e8fd9c3c63c768bf862f3e46..daef499e51429fc97a5aa53cb7383bec0a2586d6 100644
(file)
--- a/
ustream-fd.c
+++ b/
ustream-fd.c
@@
-119,7
+119,8
@@
static bool __ustream_fd_poll(struct ustream_fd *sf, unsigned int events)
ustream_fd_read_pending(sf, &more);
if (events & ULOOP_WRITE) {
- if (ustream_write_pending(s))
+ bool no_more = ustream_write_pending(s);
+ if (no_more)
ustream_fd_set_uloop(s, false);
}