From: Felix Fietkau Date: Tue, 23 Oct 2012 15:59:52 +0000 (+0200) Subject: fix logic inversion X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=55e2be9640ea22c59d59b29ad61d99e71c9f67b5;p=project%2Fustream-ssl.git fix logic inversion --- 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); }