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