mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-12 18:27:32 +09:00
[xpcom] remove incorrect assertion.
See https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2095#issuecomment-33796
This commit is contained in:
parent
d89f4e1454
commit
8bf892d728
1 changed files with 1 additions and 3 deletions
|
|
@ -623,13 +623,11 @@ TimerThread::AddTimerInternal(nsTimerImpl* aTimer)
|
||||||
return insertSlot - mTimers.Elements();
|
return insertSlot - mTimers.Elements();
|
||||||
}
|
}
|
||||||
|
|
||||||
// This function must be called from within a lock.
|
// Note: this function must be called from within a lock.
|
||||||
// Also: we hold the mutex for the nsTimerImpl.
|
|
||||||
bool
|
bool
|
||||||
TimerThread::RemoveTimerInternal(nsTimerImpl* aTimer)
|
TimerThread::RemoveTimerInternal(nsTimerImpl* aTimer)
|
||||||
{
|
{
|
||||||
mMonitor.AssertCurrentThreadOwns();
|
mMonitor.AssertCurrentThreadOwns();
|
||||||
aTimer->mMutex.AssertCurrentThreadOwns();
|
|
||||||
if (!mTimers.RemoveElement(aTimer)) {
|
if (!mTimers.RemoveElement(aTimer)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue