From: Felix Fietkau Date: Tue, 23 Oct 2012 16:00:18 +0000 (+0200) Subject: ustream-example: fix logic inversion X-Git-Url: http://git.archive.openwrt.org/?p=project%2Flibubox.git;a=commitdiff_plain;h=15ce77677281a91b7a26b693a129a92997d3d6bc ustream-example: fix logic inversion --- diff --git a/examples/ustream-example.c b/examples/ustream-example.c index 00c7122..68611c6 100644 --- a/examples/ustream-example.c +++ b/examples/ustream-example.c @@ -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); }