Shutdown lb_policy when changing it

pull/2846/head
Craig Tiller 9 years ago
parent 95a98ca768
commit de02ae611f
  1. 1
      src/core/channel/client_channel.c

@ -527,6 +527,7 @@ static void cc_on_config_changed(void *arg, int iomgr_success) {
}
if (old_lb_policy != NULL) {
grpc_lb_policy_shutdown(old_lb_policy);
GRPC_LB_POLICY_UNREF(old_lb_policy, "channel");
}

Loading…
Cancel
Save