From f8735f5b539b991f8da9ec1b3e64966566d77477 Mon Sep 17 00:00:00 2001 From: stale Date: Sun, 3 Jul 2022 04:24:51 -0300 Subject: sounds! --- src/conn.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/conn.rs') diff --git a/src/conn.rs b/src/conn.rs index 047d7db..89fd5e0 100644 --- a/src/conn.rs +++ b/src/conn.rs @@ -83,6 +83,9 @@ pub async fn drive_conn(conn: (Conn, SplitStream), rinfo: (RoomId, Ar x.zip(y) }; if let Some(cmd_name) = fields.next() { + if cmd_name == "<3" { + continue; // heartbeat, no need to handle it + } use crate::minesweeper::{Move,MoveType}; let mut players_lock = players.write().await; match players_lock.get_mut(&conn.addr) { -- cgit v1.2.3