fix hang doing imap sync r+sr=sspitzer, 79764

This commit is contained in:
bienvenu%netscape.com 2001-05-10 14:09:39 +00:00
parent 212b9c9a14
commit ee741c5aee

View File

@ -173,15 +173,16 @@ nsresult nsImapOfflineSync::AdvanceToNextFolder()
void nsImapOfflineSync::AdvanceToFirstIMAPFolder()
{
nsresult rv;
m_currentServer = nsnull;
nsresult rv = AdvanceToNextFolder();
nsCOMPtr <nsIMsgImapMailFolder> imapFolder;
do
{
rv = AdvanceToNextFolder();
if (m_currentFolder)
imapFolder = do_QueryInterface(m_currentFolder);
}
while (m_currentFolder && !imapFolder);
while (NS_SUCCEEDED(rv) && m_currentFolder && !imapFolder);
}
void nsImapOfflineSync::ProcessFlagOperation(nsIMsgOfflineImapOperation *currentOp)