Bug 1152041 - Do not try to reconnect if we are offline. r=mayhemer

This commit is contained in:
Dragana Damjanovic 2015-05-09 09:27:00 -04:00
parent 219aac92eb
commit 0a5ab0a3dd

View File

@ -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;