diff options
author | Craig Tiller <ctiller@google.com> | 2016-08-22 11:38:30 -0700 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2016-08-22 11:38:30 -0700 |
commit | b2176fcadc7a01e09ff1a44fc23b2b236c174821 (patch) | |
tree | edf14eeaa633ea4e1bb785c417b51e9f758c7fd5 | |
parent | 1aaeea183ca2a03f9cbee43f63c66cd2f7b5a7be (diff) |
Fix error logic mix up
-rw-r--r-- | src/core/ext/transport/chttp2/transport/chttp2_transport.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/ext/transport/chttp2/transport/chttp2_transport.c b/src/core/ext/transport/chttp2/transport/chttp2_transport.c index 577b8ba876..520fa57c35 100644 --- a/src/core/ext/transport/chttp2/transport/chttp2_transport.c +++ b/src/core/ext/transport/chttp2/transport/chttp2_transport.c @@ -1232,8 +1232,8 @@ static void perform_transport_op_locked(grpc_exec_ctx *exec_ctx, (uint32_t)grpc_chttp2_grpc_status_to_http2_error(op->goaway_status), gpr_slice_ref(*op->goaway_message), &t->global.qbuf); close_transport = grpc_chttp2_stream_map_size(&t->stream_map) == 0 - ? GRPC_ERROR_NONE - : GRPC_ERROR_CREATE("GOAWAY sent"); + ? GRPC_ERROR_CREATE("GOAWAY sent") + : GRPC_ERROR_NONE; grpc_chttp2_initiate_write(exec_ctx, &t->global, false, "goaway_sent"); } |