Bug 1140284 - start the resolver even when offline; r=ehsan

This commit is contained in:
Daniel Stenberg 2015-03-09 09:52:05 +01:00
Родитель edf28e957e
Коммит 8a79925af3
2 изменённых файлов: 0 добавлений и 9 удалений

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

@ -77,10 +77,6 @@ public:
bool IsOffline() { return mOffline; }
bool IsLinkUp();
bool IsComingOnline() const {
return mOffline && mSettingOffline && !mSetOfflineValue;
}
// Should only be called from NeckoChild. Use SetAppOffline instead.
void SetAppOfflineInternal(uint32_t appId, int32_t status);

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

@ -603,11 +603,6 @@ nsDNSService::Init()
nsDNSPrefetch::Initialize(this);
// Don't initialize the resolver if we're in offline mode.
// Later on, the IO service will reinitialize us when going online.
if (gIOService->IsOffline() && !gIOService->IsComingOnline())
return NS_OK;
nsCOMPtr<nsIIDNService> idn = do_GetService(NS_IDNSERVICE_CONTRACTID);
nsCOMPtr<nsIObserverService> obs = services::GetObserverService();