Bug 1312080 - Repeated calls to BackgroundHangMonitor::NotifyWait shouldn't unnecessarily wake the BackgroundHangThread. r=billm

MozReview-Commit-ID: 5NLVIFJ9fmJ

--HG--
extra : rebase_source : e5b6c0d9f1baa7c879cf2a4a60c149f09faa08ec
This commit is contained in:
Mike Conley 2016-10-21 14:56:32 -04:00
parent a0735c9169
commit 9205728a0e

View File

@ -205,6 +205,11 @@ public:
void NotifyWait()
{
MonitorAutoLock autoLock(mManager->mLock);
if (mWaiting) {
return;
}
Update();
mWaiting = true;
}