зеркало из https://github.com/mozilla/gecko-dev.git
Bug 202638 make nsSocketTransport notify its observers when the
sockettransportservice initiated a detach (f.ex. because it's going offline) r=darin sr=bz
This commit is contained in:
Родитель
0cf7fb3e59
Коммит
873aa98bc1
|
@ -1449,7 +1449,8 @@ nsSocketTransport::OnSocketDetached(PRFileDesc *fd)
|
|||
// condition up to our consumers. (e.g., STS is shutting down.)
|
||||
if (NS_SUCCEEDED(mCondition))
|
||||
mCondition = NS_ERROR_ABORT;
|
||||
else if (RecoverFromError())
|
||||
|
||||
if (RecoverFromError())
|
||||
mCondition = NS_OK;
|
||||
else {
|
||||
mState = STATE_CLOSED;
|
||||
|
|
Загрузка…
Ссылка в новой задаче