Bug 627332 - add-ons compatibility check always presents "Minefield is working offline" dialog when network link state detection is disabled. r=roc a=dolske

This commit is contained in:
Frank Yan 2011-01-27 16:07:30 -08:00
Родитель 56038ffbad
Коммит 1db8bb34a8
1 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -268,15 +268,15 @@ nsIOService::Init()
#endif
mNetworkLinkService = do_GetService(NS_NETWORK_LINK_SERVICE_CONTRACTID);
if (!mNetworkLinkService) {
mManageOfflineStatus = PR_FALSE;
if (!mNetworkLinkService)
// We can't really determine if the machine has a usable network connection,
// so let's cross our fingers!
SetOffline(PR_FALSE);
}
mManageOfflineStatus = PR_FALSE;
if (mManageOfflineStatus)
TrackNetworkLinkStatusForOffline();
else
SetOffline(PR_FALSE);
NS_TIME_FUNCTION_MARK("Set up network link service");