fix: configure window then flush frame clock events, so it stays in sync and prevents crash
This commit is contained in:
parent
d5e042e822
commit
fb95442a0b
2 changed files with 11 additions and 8 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue