1
2
Fork 0
mirror of https://github.com/mat-1/azalea.git synced 2025-08-02 06:16:04 +00:00

ok shutdown doesn't actually have to consume client

This commit is contained in:
mat 2022-11-21 14:17:13 -06:00
parent 0b9d7dff03
commit 6dfce515bd

View file

@ -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: {}",