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