summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2012-10-23 17:59:52 +0200
committerFelix Fietkau <nbd@openwrt.org>2012-10-23 17:59:52 +0200
commit55e2be9640ea22c59d59b29ad61d99e71c9f67b5 (patch)
tree628f0dc8eadd7bfdb670e95dfe93eed14cce2607
parentfdbedf748f4c2654fe85f613216a2dacc407c0a7 (diff)
downloadustream-ssl-55e2be9640ea22c59d59b29ad61d99e71c9f67b5.tar.gz
fix logic inversion
-rw-r--r--ustream-example.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ustream-example.c b/ustream-example.c
index 01e3aab..b3cbe76 100644
--- a/ustream-example.c
+++ b/ustream-example.c
@@ -75,7 +75,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);
}