Skip to content
Snippets Groups Projects
Commit 42c15a35 authored by Yang Gao's avatar Yang Gao
Browse files

resolve comment

parent 84b88847
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment