diff options
author | Craig Tiller <craig.tiller@gmail.com> | 2015-02-10 07:57:05 -0800 |
---|---|---|
committer | Craig Tiller <craig.tiller@gmail.com> | 2015-02-10 07:57:05 -0800 |
commit | 8ed7311e994b387208a4fbcdd4a11899d1115f93 (patch) | |
tree | aedea33205339043541da73fb1687ec4069f0f9e | |
parent | 225f7be935731104495e2c825ffcbf005d520b2b (diff) | |
parent | b0e7275501c1f62a7f682fb56c6d916681a69d3a (diff) |
Merge github.com:grpc/grpc into c++api
-rw-r--r-- | src/core/surface/call.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/core/surface/call.c b/src/core/surface/call.c index 37ae42676d..ee8e8588c7 100644 --- a/src/core/surface/call.c +++ b/src/core/surface/call.c @@ -404,7 +404,11 @@ static void get_final_status(grpc_call *call, grpc_ioreq_data out) { return; } } - out.recv_status.set_value(GRPC_STATUS_UNKNOWN, out.recv_status.user_data); + if (call->is_client) { + out.recv_status.set_value(GRPC_STATUS_UNKNOWN, out.recv_status.user_data); + } else { + out.recv_status.set_value(GRPC_STATUS_OK, out.recv_status.user_data); + } } static void get_final_details(grpc_call *call, grpc_ioreq_data out) { |