summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNika Layzell <nika@thelayzells.com>2019-03-23 12:56:19 +0100
committerwolfbeast <mcwerewolf@wolfbeast.com>2019-03-23 12:56:19 +0100
commit68acc67ddbbd1c7a9577498ad41d079e6b9e3eac (patch)
treed81d896e439cc21d972c1ee3e702e2ec8540bc09
parent36fbcc6300ee57bc5ac56c88be8a134e09d10b13 (diff)
downloadUXP-68acc67ddbbd1c7a9577498ad41d079e6b9e3eac.tar
UXP-68acc67ddbbd1c7a9577498ad41d079e6b9e3eac.tar.gz
UXP-68acc67ddbbd1c7a9577498ad41d079e6b9e3eac.tar.lz
UXP-68acc67ddbbd1c7a9577498ad41d079e6b9e3eac.tar.xz
UXP-68acc67ddbbd1c7a9577498ad41d079e6b9e3eac.zip
Unregister ProcessHangMonitor as a hang annotator on shutdown.
-rw-r--r--dom/ipc/ProcessHangMonitor.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/dom/ipc/ProcessHangMonitor.cpp b/dom/ipc/ProcessHangMonitor.cpp
index d46a1f5d5..406d0bf0a 100644
--- a/dom/ipc/ProcessHangMonitor.cpp
+++ b/dom/ipc/ProcessHangMonitor.cpp
@@ -323,6 +323,8 @@ HangMonitorChild::Shutdown()
{
MOZ_RELEASE_ASSERT(NS_IsMainThread());
+ BackgroundHangMonitor::UnregisterAnnotator(*this);
+
MonitorAutoLock lock(mMonitor);
while (!mShutdownDone) {
mMonitor.Wait();