Skip to content

Commit

Permalink
fix: resume game before shutdown if in suspend
Browse files Browse the repository at this point in the history
  • Loading branch information
goweiwen committed Jun 7, 2024
1 parent e563c4c commit 67d1208
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crates/alliumd/src/alliumd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,10 @@ impl AlliumD<DefaultPlatform> {
}
_ = tokio::time::sleep(IDLE_TIMEOUT) => {
info!("idle timeout, shutting down");
signal(&self.main, Signal::SIGCONT)?;
self.platform.unsuspend(ctx)?;
self.handle_quit().await?;
return Ok(());
}
}
}
Expand Down

0 comments on commit 67d1208

Please sign in to comment.