diff options
| author | mat <github@matdoes.dev> | 2022-11-21 14:17:13 -0600 |
|---|---|---|
| committer | mat <github@matdoes.dev> | 2022-11-21 14:17:13 -0600 |
| commit | 6dfce515bdd52adfb0b433beff1161ca59fe4716 (patch) | |
| tree | 9e4b5f7a5cf1aa98a47f9e81918483d0fc4c20da /azalea-client/src/client.rs | |
| parent | 0b9d7dff03ddcac73eba092478e26d9b0071d4e6 (diff) | |
| download | azalea-drasl-6dfce515bdd52adfb0b433beff1161ca59fe4716.tar.xz | |
ok shutdown doesn't actually have to consume client
Diffstat (limited to 'azalea-client/src/client.rs')
| -rw-r--r-- | azalea-client/src/client.rs | 2 |
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: {}", |
