diff options
author | Craig Tiller <ctiller@google.com> | 2015-02-12 14:58:38 -0800 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2015-02-12 14:58:38 -0800 |
commit | 869a8700f8dcb6c2730b51d7ad4dc93227798069 (patch) | |
tree | 02b5ff40868b11f5271b3d63239f2ae0be008dfb /src/core/surface | |
parent | d4ebeeb7fbd61031c9b3db013e07195f31013e89 (diff) | |
parent | 9b09d19484c21f72eb8f1b26ad1bd63715896ee7 (diff) |
Merge github.com:grpc/grpc into c++api
Diffstat (limited to 'src/core/surface')
-rw-r--r-- | src/core/surface/call.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/surface/call.c b/src/core/surface/call.c index 5ba804ab8c..743ef0c65b 100644 --- a/src/core/surface/call.c +++ b/src/core/surface/call.c @@ -995,6 +995,12 @@ grpc_call_error grpc_call_start_batch(grpc_call *call, const grpc_op *ops, const grpc_op *op; grpc_ioreq *req; + if (nops == 0) { + grpc_cq_begin_op(call->cq, call, GRPC_OP_COMPLETE); + grpc_cq_end_op_complete(call->cq, tag, call, do_nothing, NULL, GRPC_OP_OK); + return GRPC_CALL_OK; + } + /* rewrite batch ops into ioreq ops */ for (in = 0, out = 0; in < nops; in++) { op = &ops[in]; |