aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2015-08-07 14:19:38 -0700
committerGravatar Craig Tiller <ctiller@google.com>2015-08-07 14:25:03 -0700
commitde02ae611f3a8fd43e34b8c972b5aace0df5219c (patch)
tree6d90f22443ac99effc55b5445811047b6a00a262 /src
parent95a98ca768683f3864b1aefc9d6f266b22705b2a (diff)
Shutdown lb_policy when changing it
Diffstat (limited to 'src')
-rw-r--r--src/core/channel/client_channel.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/channel/client_channel.c b/src/core/channel/client_channel.c
index a293c93ec6..6c2e6b38a8 100644
--- a/src/core/channel/client_channel.c
+++ b/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");
}