diff options
author | Craig Tiller <ctiller@google.com> | 2015-06-19 17:27:53 -0700 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2015-06-19 17:27:53 -0700 |
commit | b8d3a31aa7f9d93e701cfd441d079ef0c22c9262 (patch) | |
tree | 35f2bc12cc2d9086b753cb20e27fba699a857095 /src/core | |
parent | c7299987a0c7621d5d6bef7438e9baf04fc70de2 (diff) |
Always use the first status code received
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/surface/call.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/surface/call.c b/src/core/surface/call.c index ad55ef6601..6e2714db0b 100644 --- a/src/core/surface/call.c +++ b/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, gpr_uint32 status) { + if (call->status[source].is_set) return; + call->status[source].is_set = 1; call->status[source].code = status; |