ustream-fd: readability change.
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
This commit is contained in:
parent
9386d0717a
commit
cead67c804
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue