mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1145893
- Shutdown nsNSSComponent background threads during xpcom-shutdown. r=keeler, a=me
This commit is contained in:
parent
a862c886ad
commit
a30b6503c6
@ -271,6 +271,8 @@ nsNSSComponent::createBackgroundThreads()
|
||||
nsNSSComponent::~nsNSSComponent()
|
||||
{
|
||||
MOZ_LOG(gPIPNSSLog, LogLevel::Debug, ("nsNSSComponent::dtor\n"));
|
||||
NS_ASSERTION(!mCertVerificationThread,
|
||||
"Cert verification thread should have been cleaned up.");
|
||||
|
||||
deleteBackgroundThreads();
|
||||
|
||||
@ -1331,6 +1333,8 @@ nsNSSComponent::Observe(nsISupports* aSubject, const char* aTopic,
|
||||
bec->DontForward();
|
||||
}
|
||||
}
|
||||
|
||||
deleteBackgroundThreads();
|
||||
}
|
||||
else if (nsCRT::strcmp(aTopic, NS_PREFBRANCH_PREFCHANGE_TOPIC_ID) == 0) {
|
||||
nsNSSShutDownPreventionLock locker;
|
||||
|
Loading…
Reference in New Issue
Block a user