aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core
diff options
context:
space:
mode:
authorGravatar yang-g <yangg@google.com>2015-09-18 01:24:14 -0700
committerGravatar yang-g <yangg@google.com>2015-09-18 01:24:14 -0700
commitd886f339399e0936e26a55fd71519b2db588d2fc (patch)
treef72655d675888e292780182deb70cee71a393bbc /src/core
parenta63fe4e259d572b591ec8b4ea21101d242be4f62 (diff)
add a test
Diffstat (limited to 'src/core')
-rw-r--r--src/core/surface/channel_connectivity.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/surface/channel_connectivity.c b/src/core/surface/channel_connectivity.c
index e89c80795a..5c55ad3655 100644
--- a/src/core/surface/channel_connectivity.c
+++ b/src/core/surface/channel_connectivity.c
@@ -78,6 +78,7 @@ typedef struct {
} state_watcher;
static void delete_state_watcher(state_watcher *w) {
+ GRPC_CHANNEL_INTERNAL_UNREF(w->channel, "watch_connectivity");
gpr_mu_destroy(&w->mu);
gpr_free(w);
}
@@ -117,7 +118,6 @@ static void partly_done(state_watcher *w, int due_to_completion) {
grpc_channel_get_channel_stack(w->channel));
grpc_client_channel_del_interested_party(client_channel_elem,
grpc_cq_pollset(w->cq));
- GRPC_CHANNEL_INTERNAL_UNREF(w->channel, "watch_connectivity");
}
gpr_mu_unlock(&w->mu);
if (due_to_completion) {