Release target once pinged

pull/8640/head
Craig Tiller 8 years ago
parent 3b476d4d3e
commit f81a5dca3d
  1. 1
      src/core/ext/lb_policy/round_robin/round_robin.c

@ -609,6 +609,7 @@ static void rr_ping_one(grpc_exec_ctx *exec_ctx, grpc_lb_policy *pol,
grpc_subchannel_get_connected_subchannel(selected->subchannel),
"picked");
grpc_connected_subchannel_ping(exec_ctx, target, closure);
GRPC_CONNECTED_SUBCHANNEL_UNREF(exec_ctx, target, "picked");
} else {
gpr_mu_unlock(&p->mu);
grpc_exec_ctx_sched(exec_ctx, closure,

Loading…
Cancel
Save