aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar yang-g <yangg@google.com>2015-11-20 10:08:26 -0800
committerGravatar yang-g <yangg@google.com>2015-11-20 10:08:26 -0800
commit768999d0a351e2fd0a691d6391ff767228135123 (patch)
treedad8eb204002f31dc8bc2f8ff48c0ea9fd9cf2cc
parent5e72a35498d599cf47e1aa42d9917d6056fc6d8e (diff)
format
-rw-r--r--src/core/security/server_secure_chttp2.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/core/security/server_secure_chttp2.c b/src/core/security/server_secure_chttp2.c
index c161541ee8..e0a6c641ed 100644
--- a/src/core/security/server_secure_chttp2.c
+++ b/src/core/security/server_secure_chttp2.c
@@ -115,8 +115,7 @@ static void on_secure_handshake_done(grpc_exec_ctx *exec_ctx, void *statep,
grpc_chttp2_transport_start_reading(exec_ctx, transport, NULL, 0);
} else {
/* We need to consume this here, because the server may already have
- * gone
- * away. */
+ * gone away. */
grpc_endpoint_destroy(exec_ctx, secure_endpoint);
}
gpr_mu_unlock(&state->mu);
@@ -145,9 +144,9 @@ static void start(grpc_exec_ctx *exec_ctx, grpc_server *server, void *statep,
static void destroy_done(grpc_exec_ctx *exec_ctx, void *statep, int success) {
grpc_server_secure_state *state = statep;
- grpc_security_connector_shutdown(exec_ctx, state->sc);
state->destroy_callback->cb(exec_ctx, state->destroy_callback->cb_arg,
success);
+ grpc_security_connector_shutdown(exec_ctx, state->sc);
state_unref(state);
}