Unregister ProcessHangMonitor as a hang annotator on shutdown.

This commit is contained in:
Nika Layzell 2019-03-23 12:56:19 +01:00 committed by Roy Tam
commit 55fed93296

View file

@ -323,6 +323,8 @@ HangMonitorChild::Shutdown()
{
MOZ_RELEASE_ASSERT(NS_IsMainThread());
BackgroundHangMonitor::UnregisterAnnotator(*this);
MonitorAutoLock lock(mMonitor);
while (!mShutdownDone) {
mMonitor.Wait();