зеркало из https://github.com/mozilla/pjs.git
fixed bug 39810 - empty trash on exit causes slow shutdow; PR_Wait() too long; r=mscott
This commit is contained in:
Родитель
ac3f951cdb
Коммит
c99b96e79b
|
@ -835,7 +835,7 @@ PRBool nsMsgAccountManager::emptyTrashOnExit(nsHashKey *aKey, void *aData,
|
|||
PR_FALSE);
|
||||
if (isImap)
|
||||
server->GetPassword(getter_Copies(passwd));
|
||||
if (!isImap || (isImap && passwd))
|
||||
if (!isImap || (isImap && passwd && *passwd))
|
||||
{
|
||||
nsCOMPtr<nsIUrlListener> urlListener;
|
||||
nsresult rv;
|
||||
|
@ -863,7 +863,7 @@ PRBool nsMsgAccountManager::emptyTrashOnExit(nsHashKey *aKey, void *aData,
|
|||
{
|
||||
accountManager->GetEmptyTrashInProgress(&inProgress);
|
||||
PR_CEnterMonitor(folder);
|
||||
PR_CWait(folder, 10000UL);
|
||||
PR_CWait(folder, 1000UL);
|
||||
PR_CExitMonitor(folder);
|
||||
if (eventQueue)
|
||||
eventQueue->ProcessPendingEvents();
|
||||
|
|
|
@ -674,7 +674,8 @@ NS_IMETHODIMP nsImapUrl::AddOnlineDirectoryIfNecessary(const char *onlineMailbox
|
|||
// This invariant should be maintained by libmsg when reading/writing the prefs.
|
||||
// We are only supporting online directories whose online delimiter is /
|
||||
// Therefore, the online directory must end in a slash.
|
||||
PR_ASSERT(onlineDir[nsCRT::strlen(onlineDir) - 1] == '/');
|
||||
NS_ASSERTION (onlineDir[nsCRT::strlen(onlineDir) - 1] == '/',
|
||||
"online directory not ended with a slash\n");
|
||||
#endif
|
||||
nsIMAPNamespace *ns = nsnull;
|
||||
rv = hostSessionList->GetNamespaceForMailboxForHost(serverKey,
|
||||
|
|
Загрузка…
Ссылка в новой задаче