fix hang emptying trash on exit while offline r=naving, sr=sspitzer 78825

This commit is contained in:
bienvenu%netscape.com 2001-05-09 13:39:04 +00:00
Родитель 927878adab
Коммит 4c71ce01cc
1 изменённых файлов: 4 добавлений и 0 удалений

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

@ -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);