From 01f49533093e12b3999c0b1a78cba5ee9a8de8fb Mon Sep 17 00:00:00 2001 From: Mark Banner Date: Sat, 28 Feb 2009 09:53:45 +0000 Subject: [PATCH] Bug 480324 Link state detection on Mac OS X not always working (offline, auto detect). r=dcamp,jduell.mcbugs,sr=jst --- netwerk/system/mac/nsNetworkLinkService.mm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/netwerk/system/mac/nsNetworkLinkService.mm b/netwerk/system/mac/nsNetworkLinkService.mm index 7ffe1033ed3..7a1c4d75596 100644 --- a/netwerk/system/mac/nsNetworkLinkService.mm +++ b/netwerk/system/mac/nsNetworkLinkService.mm @@ -174,8 +174,7 @@ nsNetworkLinkService::UpdateReachability() } SCNetworkConnectionFlags flags; - if (!::SCNetworkReachabilityGetFlags(mReachability, &flags) || - flags == 0) { + if (!::SCNetworkReachabilityGetFlags(mReachability, &flags)) { mStatusKnown = PR_FALSE; return; }