From e46577a214ae30159d14c128c45488e3772c8f84 Mon Sep 17 00:00:00 2001 From: mat <27899617+mat-1@users.noreply.github.com> Date: Mon, 19 Sep 2022 21:21:46 -0500 Subject: Fix connection writer being locked (#23) * Split connection struct in az-protocol * az-client uses split conns * fix errors * add a convenience write_packet fn to az-client --- azalea-client/src/movement.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'azalea-client/src/movement.rs') diff --git a/azalea-client/src/movement.rs b/azalea-client/src/movement.rs index ddc44c0a..0a4a05e8 100644 --- a/azalea-client/src/movement.rs +++ b/azalea-client/src/movement.rs @@ -121,7 +121,7 @@ impl Client { }; if let Some(packet) = packet { - self.conn.lock().await.write(packet).await?; + self.write_packet(packet).await?; } Ok(()) -- cgit v1.2.3