X-Git-Url: http://git.archive.openwrt.org/?p=project%2Flibubox.git;a=blobdiff_plain;f=ustream-fd.c;h=bc44d4a825425f49e8fd9c3c63c768bf862f3e46;hp=4abb53053bbc2bb6440cb31051851cee71e112e2;hb=73c4b4fdfe02757a780284bdce5d2fa848358df3;hpb=2851ce7edb3247233b0d07e6d26d5a2ed0478a56 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); }