From cc2eb4ef053da7a53663bdecac912a1c49490301 Mon Sep 17 00:00:00 2001 From: stale Date: Fri, 1 Jul 2022 22:14:52 -0300 Subject: fix the mess i made of type aliases --- src/conn.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/conn.rs') 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(); -- cgit v1.2.3