projects
/
project
/
ustream-ssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix logic inversion
[project/ustream-ssl.git]
/
ustream-example.c
diff --git
a/ustream-example.c
b/ustream-example.c
index
01e3aab
..
b3cbe76
100644
(file)
--- 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);
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);
}
fprintf(stderr, "Block read, bytes: %d\n", s->w.data_bytes);
ustream_set_read_blocked(s, true);
}