aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/objective-c/GRPCClient/private/GRPCChannelPool.m
diff options
context:
space:
mode:
authorGravatar Muxi Yan <mxyan@google.com>2018-10-18 11:13:22 -0700
committerGravatar Muxi Yan <mxyan@google.com>2018-10-18 11:13:22 -0700
commit7871fedfd6e594ac5935d2018b9680e18979991c (patch)
tree2a3f3fe216352c940ae03f6cdf081920918823f8 /src/objective-c/GRPCClient/private/GRPCChannelPool.m
parentac211b4214b9a5bbc00631b61af396557837b9fb (diff)
always unregister observer
Diffstat (limited to 'src/objective-c/GRPCClient/private/GRPCChannelPool.m')
-rw-r--r--src/objective-c/GRPCClient/private/GRPCChannelPool.m6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/objective-c/GRPCClient/private/GRPCChannelPool.m b/src/objective-c/GRPCClient/private/GRPCChannelPool.m
index 4fae7d57ca..5707e7f950 100644
--- a/src/objective-c/GRPCClient/private/GRPCChannelPool.m
+++ b/src/objective-c/GRPCClient/private/GRPCChannelPool.m
@@ -187,11 +187,7 @@ extern const char *kCFStreamVarName;
}
- (void)dealloc {
- // Connectivity monitor is not required for CFStream
- char *enableCFStream = getenv(kCFStreamVarName);
- if (enableCFStream == nil || enableCFStream[0] != '1') {
- [GRPCConnectivityMonitor unregisterObserver:self];
- }
+ [GRPCConnectivityMonitor unregisterObserver:self];
}
- (GRPCChannel *)channelWithConfiguration:(GRPCChannelConfiguration *)configuration {