From: Yousong Zhou Date: Thu, 4 Jun 2015 13:41:41 +0000 (+0800) Subject: ustream-fd: readability change. X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=cead67c804d31cc45cecd6ef8d749c2321b0d8e8;p=oweals%2Flibubox.git ustream-fd: readability change. Signed-off-by: Yousong Zhou --- 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); }