From 5e72a35498d599cf47e1aa42d9917d6056fc6d8e Mon Sep 17 00:00:00 2001 From: yang-g Date: Fri, 20 Nov 2015 09:49:36 -0800 Subject: make security_connector manage pending handshaker, while handshaker owns tcp --- src/core/security/server_secure_chttp2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core/security/server_secure_chttp2.c') diff --git a/src/core/security/server_secure_chttp2.c b/src/core/security/server_secure_chttp2.c index 452ac2c1d3..c161541ee8 100644 --- a/src/core/security/server_secure_chttp2.c +++ b/src/core/security/server_secure_chttp2.c @@ -145,9 +145,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); } -- cgit v1.2.3