aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/cpp/client/channel_cc.cc
diff options
context:
space:
mode:
authorGravatar Yuchen Zeng <zyc@google.com>2017-08-22 13:43:38 -0700
committerGravatar Yuchen Zeng <zyc@google.com>2017-08-22 18:56:25 -0700
commit6a6d618034fe01b00aa192f2fb44bc9f305f0519 (patch)
treed89aea9e2d051dcd2f4f316020a4b3263f0162bb /src/cpp/client/channel_cc.cc
parent2411bacd048227a68336082067950933920ba1c1 (diff)
Prevent watching unsuppoted channels
Diffstat (limited to 'src/cpp/client/channel_cc.cc')
-rw-r--r--src/cpp/client/channel_cc.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cpp/client/channel_cc.cc b/src/cpp/client/channel_cc.cc
index 78f5de0d04..7c52752bd9 100644
--- a/src/cpp/client/channel_cc.cc
+++ b/src/cpp/client/channel_cc.cc
@@ -101,7 +101,7 @@ Channel::Channel(const grpc::string& host, grpc_channel* channel)
host_(host),
c_channel_(channel) {
g_gli_initializer.summon();
- if (host != "inproc") {
+ if (grpc_channel_support_connectivity_watcher(channel)) {
connectivity_watcher_->StartWatching();
}
}