diff --git a/src/world.rs b/src/world.rs index 0f7572e..bb80762 100644 --- a/src/world.rs +++ b/src/world.rs @@ -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 {