diff options
| author | mat <27899617+mat-1@users.noreply.github.com> | 2022-09-19 21:21:46 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-09-19 21:21:46 -0500 |
| commit | e46577a214ae30159d14c128c45488e3772c8f84 (patch) | |
| tree | ca4932b8f3f81f6eaa6d37c5f4d7ea390968d54d /azalea-client/src/movement.rs | |
| parent | 528c1a07e3ac089ff70036a5e403eb2b8d3ae21f (diff) | |
| download | azalea-drasl-e46577a214ae30159d14c128c45488e3772c8f84.tar.xz | |
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
Diffstat (limited to 'azalea-client/src/movement.rs')
| -rw-r--r-- | azalea-client/src/movement.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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(()) |
