mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1152046 - Don't try to connect if we are shutting down. r=mayhemer
This commit is contained in:
parent
a3ffa582a7
commit
282fb00333
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user