one fix for imap urls spinning, when all cached connections have timed out, 163951, sr=mscott

This commit is contained in:
bienvenu%nventure.com 2005-09-01 14:30:33 +00:00
Родитель 5f6bb9b0cd
Коммит 6b9028d0ea
1 изменённых файлов: 4 добавлений и 0 удалений

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

@ -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)
{