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 6d01957
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/alliumd/src/alliumd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,8 @@ impl AlliumD<DefaultPlatform> {
}
_ = tokio::time::sleep(IDLE_TIMEOUT) => {
info!("idle timeout, shutting down");
signal(&self.main, Signal::SIGCONT)?;
self.platform.unsuspend(ctx)

Check failure on line 441 in crates/alliumd/src/alliumd.rs

View workflow job for this annotation

GitHub Actions / Run Tests

expected `;`, found keyword `self`
self.handle_quit().await?;
}
}
Expand Down

0 comments on commit 6d01957

Please sign in to comment.