From 55e2be9640ea22c59d59b29ad61d99e71c9f67b5 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Tue, 23 Oct 2012 17:59:52 +0200 Subject: [PATCH] fix logic inversion --- ustream-example.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.25.1