summaryrefslogtreecommitdiff
path: root/src/conn.rs
diff options
context:
space:
mode:
authorstale <redkugelblitzin@gmail.com>2022-07-01 22:14:52 -0300
committerstale <redkugelblitzin@gmail.com>2022-07-01 22:14:52 -0300
commitcc2eb4ef053da7a53663bdecac912a1c49490301 (patch)
tree97d8f153840b342acc7beda290793edc49be1d84 /src/conn.rs
parentfe851ee7ea31caa48a6d9a8ce1ddbb30854f2321 (diff)
fix the mess i made of type aliases
Diffstat (limited to 'src/conn.rs')
-rw-r--r--src/conn.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conn.rs b/src/conn.rs
index addf3c5..7adeeae 100644
--- a/src/conn.rs
+++ b/src/conn.rs
@@ -147,7 +147,7 @@ pub async fn handle_room(streams: RoomStreams, addr: SocketAddr, rinfo: (RoomId,
let uid = {
// new scope cuz paranoid bout deadlocks
let conn = Conn { addr, tx: tx.clone() };
- room.write().await.players.insert_conn(conn, name.clone(), clr).await
+ room.write().await.players.write().await.insert_conn(conn, name.clone(), clr)
};
let players_lock = players.read().await;
let me = players_lock.get(&addr).unwrap();