Merge pull request #2152 from ctiller/fix-the-pointy-sea

Always use the first status code received
pull/1969/head
Jan Tattermusch 10 years ago
commit 8222b19eb1
  1. 2
      src/core/surface/call.c

@ -405,6 +405,8 @@ void grpc_call_internal_unref(grpc_call *c, int allow_immediate_deletion) {
static void set_status_code(grpc_call *call, status_source source, static void set_status_code(grpc_call *call, status_source source,
gpr_uint32 status) { gpr_uint32 status) {
if (call->status[source].is_set) return;
call->status[source].is_set = 1; call->status[source].is_set = 1;
call->status[source].code = status; call->status[source].code = status;

Loading…
Cancel
Save