From c7c1081b45bec953a57ada3695835944485f98e3 Mon Sep 17 00:00:00 2001 From: "naving%netscape.com" Date: Thu, 10 May 2001 03:05:20 +0000 Subject: [PATCH] 72588; reset m_folderDoingCleanupInbox and m_folderDoingEmptyTrash to nsnull. r=suresh sr=bienvenu --- mailnews/base/src/nsMsgAccountManager.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mailnews/base/src/nsMsgAccountManager.cpp b/mailnews/base/src/nsMsgAccountManager.cpp index aa42962b327..7bcd3914af1 100644 --- a/mailnews/base/src/nsMsgAccountManager.cpp +++ b/mailnews/base/src/nsMsgAccountManager.cpp @@ -2037,12 +2037,13 @@ nsMsgAccountManager::OnStartRunningUrl(nsIURI * aUrl) NS_IMETHODIMP nsMsgAccountManager::OnStopRunningUrl(nsIURI * aUrl, nsresult aExitCode) { - if (m_folderDoingEmptyTrash) + if (m_folderDoingEmptyTrash) { PR_CEnterMonitor(m_folderDoingEmptyTrash); PR_CNotifyAll(m_folderDoingEmptyTrash); m_emptyTrashInProgress = PR_FALSE; PR_CExitMonitor(m_folderDoingEmptyTrash); + m_folderDoingEmptyTrash = nsnull; //reset to nsnull; } else if (m_folderDoingCleanupInbox) { @@ -2050,6 +2051,7 @@ nsMsgAccountManager::OnStopRunningUrl(nsIURI * aUrl, nsresult aExitCode) PR_CNotifyAll(m_folderDoingCleanupInbox); m_cleanupInboxInProgress = PR_FALSE; PR_CExitMonitor(m_folderDoingCleanupInbox); + m_folderDoingCleanupInbox=nsnull; //reset to nsnull } return NS_OK; }