aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/client_config
diff options
context:
space:
mode:
authorGravatar Craig Tiller <craig.tiller@gmail.com>2015-12-01 06:55:25 -0800
committerGravatar Craig Tiller <craig.tiller@gmail.com>2015-12-01 06:55:25 -0800
commitcaa4e702d05cdd7cd09987df102cd738c3e958d4 (patch)
treeb21222563d9ea49a5912f851b14550fff6ba093b /src/core/client_config
parent54914ee42965bb0b5a1382b1b411a5ccb94012e3 (diff)
Shutdown connector at the right time
Diffstat (limited to 'src/core/client_config')
-rw-r--r--src/core/client_config/subchannel.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/client_config/subchannel.c b/src/core/client_config/subchannel.c
index 9f802f1cc3..a0e51d57ec 100644
--- a/src/core/client_config/subchannel.c
+++ b/src/core/client_config/subchannel.c
@@ -234,6 +234,7 @@ static void disconnect(grpc_exec_ctx *exec_ctx, grpc_subchannel *c) {
gpr_mu_lock(&c->mu);
GPR_ASSERT(!c->disconnected);
c->disconnected = 1;
+ grpc_connector_shutdown(exec_ctx, c->connector);
con = GET_CONNECTED_SUBCHANNEL(c, no_barrier);
if (con != NULL) {
GRPC_CONNECTED_SUBCHANNEL_UNREF(exec_ctx, con, "connection");