aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar Vijay Pai <vpai@google.com>2017-12-22 23:48:58 -0800
committerGravatar Vijay Pai <vpai@google.com>2017-12-22 23:48:58 -0800
commitd5730c6c22f98dfb8e023c38f320a7d6d646b792 (patch)
treeff0297a39793e6706bcd76a9ac3a0dcf8203ea98 /include
parentfb2eb5279e3979f959163261f7d25543d078e869 (diff)
Allow no message on sync unary call, just like async
Diffstat (limited to 'include')
-rw-r--r--include/grpc++/impl/codegen/client_unary_call.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/grpc++/impl/codegen/client_unary_call.h b/include/grpc++/impl/codegen/client_unary_call.h
index 256dd859d3..543e54b972 100644
--- a/include/grpc++/impl/codegen/client_unary_call.h
+++ b/include/grpc++/impl/codegen/client_unary_call.h
@@ -65,6 +65,7 @@ class BlockingUnaryCallImpl {
context->initial_metadata_flags());
ops.RecvInitialMetadata(context);
ops.RecvMessage(result);
+ ops.AllowNoMessage();
ops.ClientSendClose();
ops.ClientRecvStatus(context, &status_);
call.PerformOps(&ops);