зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
b97b93ce31
Коммит
16bd9a814d
|
@ -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)
|
||||
|
|
Загрузка…
Ссылка в новой задаче