Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.openwrt.org/project/libubox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYousong Zhou <yszhou4tech@gmail.com>2015-06-04 16:41:41 +0300
committerFelix Fietkau <nbd@openwrt.org>2015-06-14 16:16:10 +0300
commitcead67c804d31cc45cecd6ef8d749c2321b0d8e8 (patch)
treebedb9ec4c8e5d08d53198dc0474e612d5608207c /ustream-fd.c
parent9386d0717a7477bf094cc9b1a034ae7aae3a2f67 (diff)
ustream-fd: readability change.
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
Diffstat (limited to 'ustream-fd.c')
-rw-r--r--ustream-fd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ustream-fd.c b/ustream-fd.c
index bc44d4a..daef499 100644
--- 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);
}