aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2022-11-21 14:17:13 -0600
committermat <github@matdoes.dev>2022-11-21 14:17:13 -0600
commit6dfce515bdd52adfb0b433beff1161ca59fe4716 (patch)
tree9e4b5f7a5cf1aa98a47f9e81918483d0fc4c20da
parent0b9d7dff03ddcac73eba092478e26d9b0071d4e6 (diff)
downloadazalea-drasl-6dfce515bdd52adfb0b433beff1161ca59fe4716.tar.xz
ok shutdown doesn't actually have to consume client
-rw-r--r--azalea-client/src/client.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/azalea-client/src/client.rs b/azalea-client/src/client.rs
index 75661d19..9c941abf 100644
--- a/azalea-client/src/client.rs
+++ b/azalea-client/src/client.rs
@@ -313,7 +313,7 @@ impl Client {
}
/// Disconnect from the server, ending all tasks.
- pub async fn shutdown(self) -> Result<(), std::io::Error> {
+ pub async fn shutdown(&self) -> Result<(), std::io::Error> {
if let Err(e) = self.write_conn.lock().await.shutdown().await {
warn!(
"Error shutting down connection, but it might be fine: {}",