[xpcom] remove incorrect assertion.

See https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2095#issuecomment-33796
This commit is contained in:
Moonchild 2023-01-29 19:19:48 +01:00 committed by roytam1
commit 8bf892d728

View file

@ -623,13 +623,11 @@ TimerThread::AddTimerInternal(nsTimerImpl* aTimer)
return insertSlot - mTimers.Elements();
}
// This function must be called from within a lock.
// Also: we hold the mutex for the nsTimerImpl.
// Note: this function must be called from within a lock.
bool
TimerThread::RemoveTimerInternal(nsTimerImpl* aTimer)
{
mMonitor.AssertCurrentThreadOwns();
aTimer->mMutex.AssertCurrentThreadOwns();
if (!mTimers.RemoveElement(aTimer)) {
return false;
}