Shutdown connector at the right time

reviewable/pr4232/r5
Craig Tiller 9 years ago
parent 54914ee429
commit caa4e702d0
  1. 1
      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_mu_lock(&c->mu);
GPR_ASSERT(!c->disconnected); GPR_ASSERT(!c->disconnected);
c->disconnected = 1; c->disconnected = 1;
grpc_connector_shutdown(exec_ctx, c->connector);
con = GET_CONNECTED_SUBCHANNEL(c, no_barrier); con = GET_CONNECTED_SUBCHANNEL(c, no_barrier);
if (con != NULL) { if (con != NULL) {
GRPC_CONNECTED_SUBCHANNEL_UNREF(exec_ctx, con, "connection"); GRPC_CONNECTED_SUBCHANNEL_UNREF(exec_ctx, con, "connection");

Loading…
Cancel
Save