зеркало из https://github.com/mozilla/gecko-dev.git
fix hang emptying trash on exit while offline r=naving, sr=sspitzer 78825
This commit is contained in:
Родитель
2941641b58
Коммит
3225b2ad2d
|
@ -1088,6 +1088,10 @@ NS_IMETHODIMP nsImapMailFolder::EmptyTrash(nsIMsgWindow *msgWindow,
|
|||
rv = imapService->DeleteAllMessages(m_eventQueue, trashFolder,
|
||||
urlListener, nsnull);
|
||||
}
|
||||
// return an error if this failed. We want the empty trash on exit code
|
||||
// to know if this fails so that it doesn't block waiting for empty trash to finish.
|
||||
if (NS_FAILED(rv))
|
||||
return rv;
|
||||
}
|
||||
PRBool hasSubfolders = PR_FALSE;
|
||||
rv = trashFolder->GetHasSubFolders(&hasSubfolders);
|
||||
|
|
Загрузка…
Ссылка в новой задаче