From 8b383530122b972ca69cdac33427facf7b8aaadf Mon Sep 17 00:00:00 2001 From: Vaxry Date: Sat, 19 Jul 2025 16:47:14 +0200 Subject: eventloop: improve timer handling to avoid crashes ref #11062 --- src/managers/eventLoop/EventLoopTimer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/managers/eventLoop/EventLoopTimer.cpp') diff --git a/src/managers/eventLoop/EventLoopTimer.cpp b/src/managers/eventLoop/EventLoopTimer.cpp index d4633b0d..fa86c861 100644 --- a/src/managers/eventLoop/EventLoopTimer.cpp +++ b/src/managers/eventLoop/EventLoopTimer.cpp @@ -14,13 +14,13 @@ CEventLoopTimer::CEventLoopTimer(std::optional timeout, std::f void CEventLoopTimer::updateTimeout(std::optional timeout) { if (!timeout.has_value()) { m_expires.reset(); - g_pEventLoopManager->nudgeTimers(); + g_pEventLoopManager->scheduleRecalc(); return; } m_expires = Time::steadyNow() + *timeout; - g_pEventLoopManager->nudgeTimers(); + g_pEventLoopManager->scheduleRecalc(); } bool CEventLoopTimer::passed() { -- cgit v1.2.3