diff options
author | 2016-10-20 18:03:24 -0700 | |
---|---|---|
committer | 2016-10-20 18:03:24 -0700 | |
commit | 0a18d64fccb9f42a6dd6efcfb1634d541b09af81 (patch) | |
tree | c6fdf0571b001eb4a20e1d557c643f65e9842bd7 /src/objective-c/GRPCClient/private/GRPCHost.m | |
parent | 72e92441f78dd5f51b0c1787b66d3b41e8f8767f (diff) |
Address the comments
Diffstat (limited to 'src/objective-c/GRPCClient/private/GRPCHost.m')
-rw-r--r-- | src/objective-c/GRPCClient/private/GRPCHost.m | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/objective-c/GRPCClient/private/GRPCHost.m b/src/objective-c/GRPCClient/private/GRPCHost.m index ee6045653e..256278bd49 100644 --- a/src/objective-c/GRPCClient/private/GRPCHost.m +++ b/src/objective-c/GRPCClient/private/GRPCHost.m @@ -101,6 +101,9 @@ static GRPCConnectivityMonitor *connectivityMonitor = nil; _secure = YES; kHostCache[address] = self; + // When there is host in the cache, keep a single monitor to the network + // to + // flush the cache if the connectivity status changed if (!connectivityMonitor) { connectivityMonitor = [GRPCConnectivityMonitor monitorWithHost:hostURL.host]; |