1
0
mirror of https://github.com/roytam1/UXP.git synced 2026-05-26 13:58:49 +00:00

[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
parent d89f4e1454
commit 8bf892d728
+1 -3
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;
}