From 514ac24061c85e328e5d209d472661893eb6788d Mon Sep 17 00:00:00 2001 From: Mads Marquart Date: Tue, 10 Sep 2024 15:11:35 +0200 Subject: [PATCH] Fix iOS timers --- src/platform_impl/apple/uikit/app_state.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/platform_impl/apple/uikit/app_state.rs b/src/platform_impl/apple/uikit/app_state.rs index ef1a73831d..8ddfde9a97 100644 --- a/src/platform_impl/apple/uikit/app_state.rs +++ b/src/platform_impl/apple/uikit/app_state.rs @@ -343,6 +343,7 @@ impl AppState { (ControlFlow::Wait, ControlFlow::Wait) => { let start = Instant::now(); self.set_state(AppStateImpl::Waiting { start }); + self.waker.stop() }, (ControlFlow::WaitUntil(old_instant), ControlFlow::WaitUntil(new_instant)) if old_instant == new_instant =>