From 6dfce515bdd52adfb0b433beff1161ca59fe4716 Mon Sep 17 00:00:00 2001 From: mat Date: Mon, 21 Nov 2022 14:17:13 -0600 Subject: ok shutdown doesn't actually have to consume client --- azalea-client/src/client.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'azalea-client') 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: {}", -- cgit v1.2.3