diff options
author | Nika Layzell <nika@thelayzells.com> | 2019-03-23 12:56:19 +0100 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-03-23 12:56:19 +0100 |
commit | 68acc67ddbbd1c7a9577498ad41d079e6b9e3eac (patch) | |
tree | d81d896e439cc21d972c1ee3e702e2ec8540bc09 /dom/ipc | |
parent | 36fbcc6300ee57bc5ac56c88be8a134e09d10b13 (diff) | |
download | UXP-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.
Diffstat (limited to 'dom/ipc')
-rw-r--r-- | dom/ipc/ProcessHangMonitor.cpp | 2 |
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(); |