aboutsummaryrefslogtreecommitdiff
path: root/azalea-client/src/client.rs
diff options
context:
space:
mode:
Diffstat (limited to 'azalea-client/src/client.rs')
-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: {}",