don't discard initial messages

This commit is contained in:
Scott Richmond 2025-07-02 16:56:30 -04:00
parent 2f4ab41a62
commit 6bdb9779d8

View File

@ -457,9 +457,15 @@ impl World {
}
}
async fn ready_io(&mut self) {
let inbox = do_io(vec![MsgOut::Ready]).await;
self.fill_buffers(inbox);
self.last_io = now();
}
pub async fn run(&mut self) {
self.activate_main();
do_io(vec![MsgOut::Ready]).await;
self.ready_io().await;
loop {
self.maybe_do_io().await;
if self.kill_signal {