ustream: only report a write error once via state_change callback

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

View file

@ -330,8 +330,9 @@ char *ustream_get_read_buf(struct ustream *s, int *buflen)
static void ustream_write_error(struct ustream *s)
{
if (!s->write_error)
ustream_state_change(s);
s->write_error = true;
ustream_state_change(s);
}
bool ustream_write_pending(struct ustream *s)