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-01-21 16:21:26 +0300
committerFelix Fietkau <nbd@openwrt.org>2015-01-21 22:02:03 +0300
commit73c4b4fdfe02757a780284bdce5d2fa848358df3 (patch)
tree134f3ab9fb4114c47252f40b14356ff06780740e /ustream-fd.c
parent60236c485387d33e1d02398a953a0834ad125161 (diff)
ustream-fd: fix logic invert of write polling.
ustream_write_pending() returns true if write buffer was flushed there. Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
Diffstat (limited to 'ustream-fd.c')
-rw-r--r--ustream-fd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ustream-fd.c b/ustream-fd.c
index 4abb530..bc44d4a 100644
--- a/ustream-fd.c
+++ b/ustream-fd.c
@@ -119,7 +119,7 @@ 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))
+ if (ustream_write_pending(s))
ustream_fd_set_uloop(s, false);
}