diff --git a/xpcom/threads/TimerThread.cpp b/xpcom/threads/TimerThread.cpp index a2e40c3880..ca0cd3cb9c 100644 --- a/xpcom/threads/TimerThread.cpp +++ b/xpcom/threads/TimerThread.cpp @@ -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; }