aboutsummaryrefslogtreecommitdiff
path: root/server/src/state.rs
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2025-11-03 17:44:33 +0100
committermetamuffin <metamuffin@disroot.org>2025-11-03 17:44:33 +0100
commitc0342bcbe5f23164f89f4c5246f9e41374325e9e (patch)
tree2a02e344b4274be47ee64621763a5be3cc7cb0c3 /server/src/state.rs
parent1f91f8aae0fb5e77583625a945c273b85f9a25e3 (diff)
downloadhurrycurry-c0342bcbe5f23164f89f4c5246f9e41374325e9e.tar
hurrycurry-c0342bcbe5f23164f89f4c5246f9e41374325e9e.tar.bz2
hurrycurry-c0342bcbe5f23164f89f4c5246f9e41374325e9e.tar.zst
Fix item location index desync on disconnect
Diffstat (limited to 'server/src/state.rs')
-rw-r--r--server/src/state.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/src/state.rs b/server/src/state.rs
index c9b7e8d4..1bddf33c 100644
--- a/server/src/state.rs
+++ b/server/src/state.rs
@@ -48,10 +48,11 @@ impl Server {
}
}
for cid in keepalive_kick {
- warn!("{cid} Client did not send keepalive in time");
+ info!("{cid} Client did not send keepalive in time");
self.disconnect(cid, Some(trm!("s.disconnect_reason.keepalive_timer")));
}
for (cid, pid) in inactivity_kick {
+ info!("{cid} Removing {pid} because of inactivity");
if let Some(conn) = self.connections.get(&cid) {
let _ = conn.replies.try_send(PacketC::ServerMessage {
message: trm!("s.leave_inactivity"),