don't flush to disk in header only download mode; this speeds up header only mode quite a bit, patch by hyc@symas.com, r/sr=bienvenu

This commit is contained in:
bienvenu%nventure.com 2007-07-19 22:19:45 +00:00
Родитель b97b93ce31
Коммит 16bd9a814d
1 изменённых файлов: 3 добавлений и 1 удалений

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

@ -784,7 +784,9 @@ nsPop3Sink::IncorporateComplete(nsIMsgWindow *aMsgWindow, PRInt32 aSize)
nsresult rv = WriteLineToMailbox(MSG_LINEBREAK);
if (NS_FAILED(rv)) return rv;
rv = m_outFileStream->Flush(); //to make sure the message is written to the disk
// aSize is only set for partial messages. Skip the flush for partials.
if (!aSize)
rv = m_outFileStream->Flush(); //to make sure the message is written to the disk
if (NS_FAILED(rv)) return rv;
NS_ASSERTION(m_newMailParser, "could not get m_newMailParser");
if (m_newMailParser)