diff options
author | stale <redkugelblitzin@gmail.com> | 2022-07-03 04:24:51 -0300 |
---|---|---|
committer | stale <redkugelblitzin@gmail.com> | 2022-07-03 04:24:51 -0300 |
commit | f8735f5b539b991f8da9ec1b3e64966566d77477 (patch) | |
tree | 6a5a87bcabbff808a200bddc372ebca7ae420f83 /src/conn.rs | |
parent | e933ae3795a27a0fad1f37189670c993d8b65f47 (diff) |
sounds!
Diffstat (limited to 'src/conn.rs')
-rw-r--r-- | src/conn.rs | 3 |
1 files changed, 3 insertions, 0 deletions
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<WebSocket>), 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) { |