ustream: only report stream eof once via state_change callback

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
This commit is contained in:
Felix Fietkau 2013-05-31 11:18:26 +02:00
parent 70e7c09bcb
commit 2851ce7edb

View file

@ -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;
}