зеркало из https://github.com/mozilla/gecko-dev.git
one fix for imap urls spinning, when all cached connections have timed out, 163951, sr=mscott
This commit is contained in:
Родитель
5f6bb9b0cd
Коммит
6b9028d0ea
|
@ -833,6 +833,10 @@ nsImapIncomingServer::GetImapConnection(nsIEventQueue *aEventQueue,
|
|||
}
|
||||
nsImapState requiredState;
|
||||
aImapUrl->GetRequiredImapState(&requiredState);
|
||||
// refresh cnt in case we killed one or more dead connections. This
|
||||
// will prevent us from not spinning up a new connection when all
|
||||
// connections were dead.
|
||||
(void) m_connectionCache->Count(&cnt);
|
||||
// if we got here and we have a connection, then we should return it!
|
||||
if (canRunUrlImmediately && connection)
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче