diff options
-rw-r--r-- | src/core/transport/chttp2_transport.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/transport/chttp2_transport.c b/src/core/transport/chttp2_transport.c index 2261b087a2..3d276b1629 100644 --- a/src/core/transport/chttp2_transport.c +++ b/src/core/transport/chttp2_transport.c @@ -893,10 +893,11 @@ static int prepare_write(transport *t) { } /* we should either exhaust window or have no ops left, but not both */ - GPR_ASSERT(s->outgoing_sopb->nops == 0 || s->outgoing_window <= 0); if (s->outgoing_sopb->nops == 0) { s->outgoing_sopb = NULL; schedule_cb(t, s->send_done_closure, 1); + } else if (s->outgoing_window) { + stream_list_add_tail(t, s, WRITABLE); } } |