From 8bf892d728db1348956ca18d97d5a71adde33867 Mon Sep 17 00:00:00 2001 From: Moonchild Date: Sun, 29 Jan 2023 19:19:48 +0100 Subject: [PATCH] [xpcom] remove incorrect assertion. See https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2095#issuecomment-33796 --- xpcom/threads/TimerThread.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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; }