Get status from wire even if the recv_trailing_metadata batch callback

is invoked with an error.
pull/15782/head
Mark D. Roth 7 years ago
parent 817d28fed6
commit 51bbbc5d8e
  1. 8
      src/core/lib/surface/call.cc

@ -1546,11 +1546,9 @@ static void receiving_trailing_metadata_ready(void* bctlp, grpc_error* error) {
grpc_call* call = bctl->call; grpc_call* call = bctl->call;
GRPC_CALL_COMBINER_STOP(&call->call_combiner, "recv_trailing_metadata_ready"); GRPC_CALL_COMBINER_STOP(&call->call_combiner, "recv_trailing_metadata_ready");
add_batch_error(bctl, GRPC_ERROR_REF(error), false); add_batch_error(bctl, GRPC_ERROR_REF(error), false);
if (error == GRPC_ERROR_NONE) { grpc_metadata_batch* md =
grpc_metadata_batch* md = &call->metadata_batch[1 /* is_receiving */][1 /* is_trailing */];
&call->metadata_batch[1 /* is_receiving */][1 /* is_trailing */]; recv_trailing_filter(call, md);
recv_trailing_filter(call, md);
}
finish_batch_step(bctl); finish_batch_step(bctl);
} }

Loading…
Cancel
Save