From 6b9028d0ea5fc4032633955f2bea9bcd444c990e Mon Sep 17 00:00:00 2001 From: "bienvenu%nventure.com" Date: Thu, 1 Sep 2005 14:30:33 +0000 Subject: [PATCH] one fix for imap urls spinning, when all cached connections have timed out, 163951, sr=mscott --- mailnews/imap/src/nsImapIncomingServer.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mailnews/imap/src/nsImapIncomingServer.cpp b/mailnews/imap/src/nsImapIncomingServer.cpp index 046b55f487cf..54494d8f38e9 100644 --- a/mailnews/imap/src/nsImapIncomingServer.cpp +++ b/mailnews/imap/src/nsImapIncomingServer.cpp @@ -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) {