mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 20:05:49 +00:00
Bug 1152041 - Do not try to reconnect if we are offline. r=mayhemer
This commit is contained in:
parent
219aac92eb
commit
0a5ab0a3dd
@ -1922,7 +1922,8 @@ nsSocketTransport::OnSocketDetached(PRFileDesc *fd)
|
||||
}
|
||||
}
|
||||
|
||||
if (RecoverFromError())
|
||||
// If we are not offline try again.
|
||||
if (!gIOService->IsOffline() && RecoverFromError())
|
||||
mCondition = NS_OK;
|
||||
else {
|
||||
mState = STATE_CLOSED;
|
||||
|
Loading…
Reference in New Issue
Block a user