diff options
author | Felix Fietkau <nbd@openwrt.org> | 2013-05-31 13:18:26 +0400 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2013-05-31 13:18:26 +0400 |
commit | 2851ce7edb3247233b0d07e6d26d5a2ed0478a56 (patch) | |
tree | 9f4a1ad62f3d3467d25cbaabd448963bd10bb092 /ustream-fd.c | |
parent | 70e7c09bcb846e51edefa8baab2018e93d77f8e2 (diff) |
ustream: only report stream eof once via state_change callback
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Diffstat (limited to 'ustream-fd.c')
-rw-r--r-- | ustream-fd.c | 3 |
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; } |