From 6bdb9779d8a83bb70908fddf0926679038e2ad8f Mon Sep 17 00:00:00 2001 From: Scott Richmond Date: Wed, 2 Jul 2025 16:56:30 -0400 Subject: [PATCH] don't discard initial messages --- src/world.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 {