зеркало из https://github.com/mozilla/gecko-dev.git
b=175352 Account Manager should protect itself in case Shutdown gets called twice
r=bhuvan sr=mscott a=asa
This commit is contained in:
Родитель
b9d29eefdc
Коммит
27fca6a29e
|
@ -202,6 +202,11 @@ nsresult nsMsgAccountManager::Init()
|
|||
|
||||
nsresult nsMsgAccountManager::Shutdown()
|
||||
{
|
||||
if (m_haveShutdown) {
|
||||
// do not shutdown twice
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
nsresult rv;
|
||||
|
||||
if(m_msgFolderCache)
|
||||
|
|
Загрузка…
Ссылка в новой задаче