fix one case of offline download silently failing, when multiple operations are run against the same folder, sr=mscott, a=chofmann

This commit is contained in:
bienvenu%nventure.com 2004-04-02 01:46:19 +00:00
Родитель 13fb4c5ecd
Коммит 5f7de0089d
1 изменённых файлов: 11 добавлений и 1 удалений

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

@ -721,7 +721,17 @@ nsImapMailFolder::UpdateFolder(nsIMsgWindow *msgWindow)
if (NS_SUCCEEDED(rv) && pEventQService)
pEventQService->GetThreadEventQueue(NS_CURRENT_THREAD,
getter_AddRefs(eventQ));
rv = imapService->SelectFolder(eventQ, this, this, msgWindow, nsnull);
nsCOMPtr <nsIURI> url;
rv = imapService->SelectFolder(eventQ, this, this, msgWindow, getter_AddRefs(url));
if (url && m_urlListener)
{
nsCOMPtr <nsIMsgMailNewsUrl> mailnewsUrl = do_QueryInterface(url);
if (mailnewsUrl)
{
mailnewsUrl->RegisterListener(m_urlListener);
m_urlListener = nsnull;
}
}
switch (rv)
{
case NS_MSG_ERROR_OFFLINE: