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:
parent
0b9d7dff03
commit
6dfce515bd
1 changed files with 1 additions and 1 deletions
|
@ -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: {}",
|
||||
|
|
Loading…
Add table
Reference in a new issue