зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1152046 - Don't try to connect if we are shutting down. r=mayhemer
--HG-- extra : rebase_source : 157f4f7af0a9ff4907bc81b4d080f4b7c0712524
This commit is contained in:
Родитель
80f348519c
Коммит
ae642a5b48
|
@ -78,6 +78,7 @@ public:
|
|||
nsAsyncRedirectVerifyHelper *helper);
|
||||
|
||||
bool IsOffline() { return mOffline; }
|
||||
bool IsShutdown() { return mShutdown; }
|
||||
bool IsLinkUp();
|
||||
|
||||
// Should only be called from NeckoChild. Use SetAppOffline instead.
|
||||
|
|
|
@ -1217,6 +1217,9 @@ nsSocketTransport::InitiateSocket()
|
|||
bool isLocal;
|
||||
IsLocal(&isLocal);
|
||||
|
||||
if (gIOService->IsShutdown()) {
|
||||
return NS_ERROR_ABORT;
|
||||
}
|
||||
if (gIOService->IsOffline()) {
|
||||
if (!isLocal)
|
||||
return NS_ERROR_OFFLINE;
|
||||
|
|
Загрузка…
Ссылка в новой задаче