ustream: only report stream eof once via state_change callback
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
This commit is contained in:
parent
70e7c09bcb
commit
2851ce7edb
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue