diff options
author | Muxi Yan <muxi@users.noreply.github.com> | 2018-04-17 10:29:27 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-17 10:29:27 -0700 |
commit | bb5482f944e6d3964b15552ec08b69afd2b1ff17 (patch) | |
tree | a500c82b0827bc86b1c7482399f1a511eb12b67a /src/objective-c/GRPCClient/private/GRPCHost.m | |
parent | 1f13655c652095562a732639cde4daf760629160 (diff) |
Fix _channel ref count issue
Diffstat (limited to 'src/objective-c/GRPCClient/private/GRPCHost.m')
-rw-r--r-- | src/objective-c/GRPCClient/private/GRPCHost.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/objective-c/GRPCClient/private/GRPCHost.m b/src/objective-c/GRPCClient/private/GRPCHost.m index 283306262a..07cfe1329b 100644 --- a/src/objective-c/GRPCClient/private/GRPCHost.m +++ b/src/objective-c/GRPCClient/private/GRPCHost.m @@ -108,7 +108,7 @@ static NSMutableDictionary *kHostCache; serverName:(NSString *)serverName timeout:(NSTimeInterval)timeout completionQueue:(GRPCCompletionQueue *)queue { - GRPCChannel *channel; + __block GRPCChannel *channel; // This is racing -[GRPCHost disconnect]. @synchronized(self) { if (!_channel) { |