summaryrefslogtreecommitdiff
path: root/server/src/main.rs
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-07-01 16:24:21 +0200
committermetamuffin <metamuffin@disroot.org>2024-07-01 16:24:21 +0200
commitcd41deaf64d5b5f4f6e2488396fbf29778c4f91c (patch)
tree70691e65bbefae8b48f2869c21daac2f6a5f0199 /server/src/main.rs
parent17024786036868b66a86caaf967a65d77dc2bd15 (diff)
downloadhurrycurry-cd41deaf64d5b5f4f6e2488396fbf29778c4f91c.tar
hurrycurry-cd41deaf64d5b5f4f6e2488396fbf29778c4f91c.tar.bz2
hurrycurry-cd41deaf64d5b5f4f6e2488396fbf29778c4f91c.tar.zst
game ends with timer
Diffstat (limited to 'server/src/main.rs')
-rw-r--r--server/src/main.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/server/src/main.rs b/server/src/main.rs
index 68927eaa..a144c704 100644
--- a/server/src/main.rs
+++ b/server/src/main.rs
@@ -90,7 +90,9 @@ async fn run() -> anyhow::Result<()> {
let mut tick = interval(Duration::from_secs_f32(dt));
loop {
tick.tick().await;
- state.write().await.tick(dt).await;
+ if let Err(e) = state.write().await.tick(dt).await {
+ warn!("tick failed: {e}");
+ }
}
});
}