diff options
author | Muxi Yan <mxyan@google.com> | 2018-11-01 09:27:40 -0700 |
---|---|---|
committer | Muxi Yan <mxyan@google.com> | 2018-11-01 09:27:40 -0700 |
commit | ce53ba74746248ef914986bc5fe8a2f89f42ceda (patch) | |
tree | f058c8922a1afca38dfda31a6be7dc8f4bf5e9ee /src/objective-c/GRPCClient/private/GRPCChannel.m | |
parent | 790adca8e397d78affef7589e1ddf94b80b052f1 (diff) |
kChannelDestroyDelay->_destroyDelay in GRPCChannelRef
Diffstat (limited to 'src/objective-c/GRPCClient/private/GRPCChannel.m')
-rw-r--r-- | src/objective-c/GRPCClient/private/GRPCChannel.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/objective-c/GRPCClient/private/GRPCChannel.m b/src/objective-c/GRPCClient/private/GRPCChannel.m index 777cbab809..67a3ac1274 100644 --- a/src/objective-c/GRPCClient/private/GRPCChannel.m +++ b/src/objective-c/GRPCClient/private/GRPCChannel.m @@ -109,7 +109,7 @@ static GRPCChannelPool *gChannelPool; if (self->_refCount == 0) { self->_lastDispatch = [NSDate date]; dispatch_time_t delay = - dispatch_time(DISPATCH_TIME_NOW, (int64_t)kChannelDestroyDelay * 1e9); + dispatch_time(DISPATCH_TIME_NOW, (int64_t)_destroyDelay * 1e9); dispatch_after(delay, self->_timerQueue, ^{ [self timerFire]; }); @@ -132,7 +132,7 @@ static GRPCChannelPool *gChannelPool; - (void)timerFire { dispatch_async(_dispatchQueue, ^{ if (self->_disconnected || self->_lastDispatch == nil || - -[self->_lastDispatch timeIntervalSinceNow] < -kChannelDestroyDelay) { + -[self->_lastDispatch timeIntervalSinceNow] < -_destroyDelay) { return; } self->_lastDispatch = nil; |