fix: configure window then flush frame clock events, so it stays in sync and prevents crash

This commit is contained in:
Ashley Wulber 2021-12-23 21:29:32 -05:00
parent d5e042e822
commit fb95442a0b
2 changed files with 11 additions and 8 deletions

View file

@ -64,7 +64,7 @@ fn spawn_launcher(tx: Sender<Event>) -> Connection {
if let Ok(reply) = m.body::<Vec<Item>>() {
let _ = sender.send(Event::WindowList(reply)).await;
}
Timer::after(Duration::from_millis(10000)).await;
Timer::after(Duration::from_millis(200)).await;
}
}
});