From 417e63af52be513d1c28e330ea1a500b86224f49 Mon Sep 17 00:00:00 2001 From: Muxi Yan Date: Thu, 12 Apr 2018 16:33:26 -0700 Subject: [PATCH] Fix GRPCHost callback for connectivity monitor --- src/objective-c/GRPCClient/private/GRPCHost.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/objective-c/GRPCClient/private/GRPCHost.m b/src/objective-c/GRPCClient/private/GRPCHost.m index 283306262a1..57810de77d1 100644 --- a/src/objective-c/GRPCClient/private/GRPCHost.m +++ b/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