forked from mirrors/gecko-dev
Bug 1894440 - Switch to Monitor#NotifyAll to fix potential deadlock. r=bvandersloot,anti-tracking-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D209262
This commit is contained in:
parent
e78109826b
commit
b3a81e641c
1 changed files with 3 additions and 3 deletions
|
|
@ -464,19 +464,19 @@ nsresult BounceTrackingProtectionStorage::Init() {
|
|||
nsresult rv = self->CreateDatabaseConnection();
|
||||
if (NS_WARN_IF(NS_FAILED(rv))) {
|
||||
self->mErrored.Flip();
|
||||
self->mMonitor.Notify();
|
||||
self->mMonitor.NotifyAll();
|
||||
return;
|
||||
}
|
||||
|
||||
rv = self->LoadMemoryStateFromDisk();
|
||||
if (NS_WARN_IF(NS_FAILED(rv))) {
|
||||
self->mErrored.Flip();
|
||||
self->mMonitor.Notify();
|
||||
self->mMonitor.NotifyAll();
|
||||
return;
|
||||
}
|
||||
|
||||
self->mInitialized.Flip();
|
||||
self->mMonitor.Notify();
|
||||
self->mMonitor.NotifyAll();
|
||||
}),
|
||||
NS_DISPATCH_EVENT_MAY_BLOCK);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue