diff options
author | 2018-11-09 07:51:38 -0800 | |
---|---|---|
committer | 2018-11-09 07:51:38 -0800 | |
commit | 861e7ce452866311ee2746d7b7a9fd1d11b84087 (patch) | |
tree | f586cef0a35b227251dab5dc6445facefe7e037e /src/objective-c/GRPCClient/private/GRPCChannel.m | |
parent | 37dbad80d5254f9bf17076d12b22b7a081e6e9dc (diff) |
nit fixes
Diffstat (limited to 'src/objective-c/GRPCClient/private/GRPCChannel.m')
-rw-r--r-- | src/objective-c/GRPCClient/private/GRPCChannel.m | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/objective-c/GRPCClient/private/GRPCChannel.m b/src/objective-c/GRPCClient/private/GRPCChannel.m index 298b6605d1..4f26b349b4 100644 --- a/src/objective-c/GRPCClient/private/GRPCChannel.m +++ b/src/objective-c/GRPCClient/private/GRPCChannel.m @@ -34,7 +34,7 @@ #import <GRPCClient/GRPCCallOptions.h> /** When all calls of a channel are destroyed, destroy the channel after this much seconds. */ -NSTimeInterval kDefaultChannelDestroyDelay = 30; +static const NSTimeInterval kDefaultChannelDestroyDelay = 30; @implementation GRPCChannelConfiguration @@ -295,6 +295,7 @@ NSTimeInterval kDefaultChannelDestroyDelay = 30; NSDate *now = [NSDate date]; self->_lastDispatch = now; dispatch_after(delay, self->_dispatchQueue, ^{ + // Timed disconnection. if (self->_lastDispatch == now) { grpc_channel_destroy(self->_unmanagedChannel); self->_unmanagedChannel = NULL; |