зеркало из https://github.com/mozilla/gecko-dev.git
fix 303289 cancelling full download of partially downloaded message with msg quarantining turned on can truncate folder, sr=mscott, a=bmsedberg
This commit is contained in:
Родитель
52a2f797f2
Коммит
61ab4cf7f3
|
@ -900,7 +900,7 @@ nsPop3Sink::IncorporateAbort(PRBool uidlDownload)
|
|||
nsresult rv;
|
||||
rv = m_outFileStream->close(); //need to close so that the file can be truncated.
|
||||
NS_ENSURE_SUCCESS(rv,rv);
|
||||
if (m_msgOffset >= 0)
|
||||
if (m_msgOffset >= 0 && !m_downloadingToTempFile)
|
||||
{
|
||||
nsCOMPtr<nsIMsgIncomingServer> server = do_QueryInterface(m_popServer);
|
||||
NS_ASSERTION(server, "Could not get the pop server !!");
|
||||
|
|
Загрузка…
Ссылка в новой задаче