Fix GRPCHost callback for connectivity monitor

pull/15050/head
Muxi Yan 7 years ago committed by GitHub
parent 7e37a42e14
commit 417e63af52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/objective-c/GRPCClient/private/GRPCHost.m

@ -275,7 +275,7 @@ static NSMutableDictionary *kHostCache;
// and Cellular data, so that a new call will use a new channel. Otherwise, a new call will still
// use the cached channel which is no longer available and will cause gRPC to hang.
- (void)connectivityChange:(NSNotification *)note {
[GRPCHost flushChannelCache];
[GRPCHost disconnect];
}
@end

Loading…
Cancel
Save