From 05fcdcd131157b83d4a9d983120c04376761cab8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A1=D0=B5=D1=80=D0=B3=D0=B5=D0=B9=20=D0=93=D0=B0=D0=BB?= =?UTF-8?q?=D0=B5=D0=B7=D0=B4=D0=B8=D0=BD=D0=BE=D0=B2?= Date: Thu, 31 Jul 2014 16:39:03 +0400 Subject: [PATCH] workaround for reachability when already online --- Reachability.m | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Reachability.m b/Reachability.m index 7b09278..3a9d15c 100644 --- a/Reachability.m +++ b/Reachability.m @@ -310,6 +310,9 @@ -(void)stopNotifier -(BOOL)isReachableWithFlags:(SCNetworkReachabilityFlags)flags { + if (flags <= 0) + return YES; + BOOL connectionUP = YES; if(!(flags & kSCNetworkReachabilityFlagsReachable))