浏览代码

Merge pull request #18482 from yashykt/http2bug2

Fix Potentially Dangerous Typo - locked function being run outside of combiner
Yash Tibrewal 6 年之前
父节点
当前提交
9effda48bf
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/core/ext/transport/chttp2/transport/chttp2_transport.cc

+ 1 - 1
src/core/ext/transport/chttp2/transport/chttp2_transport.cc

@@ -678,7 +678,7 @@ grpc_chttp2_stream::grpc_chttp2_stream(grpc_chttp2_transport* t,
   grpc_slice_buffer_init(&decompressed_data_buffer);
   grpc_slice_buffer_init(&decompressed_data_buffer);
 
 
   GRPC_CLOSURE_INIT(&complete_fetch_locked, ::complete_fetch_locked, this,
   GRPC_CLOSURE_INIT(&complete_fetch_locked, ::complete_fetch_locked, this,
-                    grpc_schedule_on_exec_ctx);
+                    grpc_combiner_scheduler(t->combiner));
   GRPC_CLOSURE_INIT(&reset_byte_stream, ::reset_byte_stream, this,
   GRPC_CLOSURE_INIT(&reset_byte_stream, ::reset_byte_stream, this,
                     grpc_combiner_scheduler(t->combiner));
                     grpc_combiner_scheduler(t->combiner));
 }
 }