diff options
| author | Vaxry <vaxry@vaxry.net> | 2025-07-19 16:47:14 +0200 |
|---|---|---|
| committer | Vaxry <vaxry@vaxry.net> | 2025-07-19 16:47:14 +0200 |
| commit | 8b383530122b972ca69cdac33427facf7b8aaadf (patch) | |
| tree | 177c7920cedd987f758fcc0d73b086a35aca7f8c /src/managers/eventLoop/EventLoopTimer.cpp | |
| parent | 3b04131259bad140183a3825b981ebe30b61e524 (diff) | |
eventloop: improve timer handling to avoid crashes
ref #11062
Diffstat (limited to 'src/managers/eventLoop/EventLoopTimer.cpp')
| -rw-r--r-- | src/managers/eventLoop/EventLoopTimer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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<Time::steady_dur> timeout, std::f void CEventLoopTimer::updateTimeout(std::optional<Time::steady_dur> 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() { |
