ios: fix timers

Fixes #4074.
Fixes #3816.
This commit is contained in:
Mads Marquart
2025-02-06 10:56:10 +01:00
committed by Kirill Chibisov
parent 487137b867
commit 501d9b4a44
2 changed files with 2 additions and 0 deletions

View File

@@ -375,6 +375,7 @@ impl AppState {
(ControlFlow::Wait, ControlFlow::Wait) => {
let start = Instant::now();
self.set_state(AppStateImpl::Waiting { waiting_handler, start });
self.waker.stop()
},
(ControlFlow::WaitUntil(old_instant), ControlFlow::WaitUntil(new_instant))
if old_instant == new_instant =>