Bug 1783659 - Backed out changeset 173576a762db (bug 1629669) for lockups. rs=backout DONTBUILD

--HG--
extra : amend_source : 9829ddd294e4c07e28dfe7c1d72e1833be83a625
This commit is contained in:
Magnus Melin 2022-08-09 11:52:06 +10:00
Родитель ef2712f909
Коммит b71050ef75
1 изменённых файлов: 2 добавлений и 9 удалений

Просмотреть файл

@ -1418,7 +1418,7 @@ void nsImapProtocol::ImapThreadMainLoop() {
MOZ_LOG(IMAP, LogLevel::Debug,
("ImapThreadMainLoop entering [this=%p]", this));
PRIntervalTime sleepTime = PR_MillisecondsToInterval(1000);
PRIntervalTime sleepTime = kImapSleepTime;
bool idlePending = false;
while (!DeathSignalReceived()) {
nsresult rv = NS_OK;
@ -8357,15 +8357,8 @@ nsresult nsImapProtocol::GetPassword(nsString& password,
ReentrantMonitorAutoEnter mon(m_passwordReadyMonitor);
while (!m_passwordObtained && !NS_FAILED(m_passwordStatus) &&
m_passwordStatus != NS_MSG_PASSWORD_PROMPT_CANCELLED &&
!DeathSignalReceived()) {
bool shuttingDown;
(void)m_imapServerSink->GetServerShuttingDown(&shuttingDown);
if (shuttingDown) {
// Note: If we fix bug 1783573 this check could be ditched.
break;
}
!DeathSignalReceived())
mon.Wait(sleepTime);
}
rv = m_passwordStatus;
password = m_password;
}