ustream-example: fix logic inversion
This commit is contained in:
parent
6e7e8a1a91
commit
15ce776772
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ static void client_read_cb(struct ustream *s, int bytes)
|
|||
cl->ctr += newline + 1 - str;
|
||||
} while(1);
|
||||
|
||||
if (s->w.data_bytes > 256 && ustream_read_blocked(s)) {
|
||||
if (s->w.data_bytes > 256 && !ustream_read_blocked(s)) {
|
||||
fprintf(stderr, "Block read, bytes: %d\n", s->w.data_bytes);
|
||||
ustream_set_read_blocked(s, true);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue