aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/transport/chttp2_transport.c
diff options
context:
space:
mode:
authorGravatar Yang Gao <yangg@google.com>2015-04-20 14:34:28 -0700
committerGravatar Yang Gao <yangg@google.com>2015-04-20 14:34:28 -0700
commit42c15a35e54a4ae8722d2558cfaf1bfe7b5a624a (patch)
treef888731d02b20d75720636512661922118ac3aef /src/core/transport/chttp2_transport.c
parent84b88847776aff3a350d6e59f7a19659e8930354 (diff)
resolve comment
Diffstat (limited to 'src/core/transport/chttp2_transport.c')
-rw-r--r--src/core/transport/chttp2_transport.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/transport/chttp2_transport.c b/src/core/transport/chttp2_transport.c
index 39297c37a3..995d64015a 100644
--- a/src/core/transport/chttp2_transport.c
+++ b/src/core/transport/chttp2_transport.c
@@ -868,7 +868,7 @@ static int prepare_write(transport *t) {
/* if there are still writes to do and the stream still has window
available, then schedule a further write */
- if (s->outgoing_sopb.nops && s->outgoing_window > 0) {
+ if (s->outgoing_sopb.nops > 0 && s->outgoing_window > 0) {
GPR_ASSERT(!t->outgoing_window);
stream_list_add_tail(t, s, WRITABLE);
}