ustream: set the right EOF flag
authorFelix Fietkau <nbd@openwrt.org>
Thu, 31 Jan 2013 15:43:44 +0000 (16:43 +0100)
committerFelix Fietkau <nbd@openwrt.org>
Thu, 31 Jan 2013 16:02:49 +0000 (17:02 +0100)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
ustream-fd.c

index e39da98..6f8f561 100644 (file)
@@ -71,7 +71,7 @@ static void ustream_fd_read_pending(struct ustream_fd *sf, bool *more)
                }
 
                if (!len) {
                }
 
                if (!len) {
-                       sf->fd.eof = true;
+                       s->eof = true;
                        ustream_state_change(s);
                        ustream_fd_set_uloop(s, false);
                        return;
                        ustream_state_change(s);
                        ustream_fd_set_uloop(s, false);
                        return;