don't discard initial messages
This commit is contained in:
parent
2f4ab41a62
commit
6bdb9779d8
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue
Block a user