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:
-rw-r--r--ustream-fd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ustream-fd.c b/ustream-fd.c
index c8f0ef9..4abb530 100644
--- a/ustream-fd.c
+++ b/ustream-fd.c
@@ -66,8 +66,9 @@ static void ustream_fd_read_pending(struct ustream_fd *sf, bool *more)
}
if (!len) {
+ if (!s->eof)
+ ustream_state_change(s);
s->eof = true;
- ustream_state_change(s);
ustream_fd_set_uloop(s, false);
return;
}