mirror of
https://github.com/mat-1/azalea.git
synced 2025-08-02 14:26:04 +00:00
Client::shutdown -> disconnect
This commit is contained in:
parent
b6b99e61f0
commit
5334f1ab74
1 changed files with 2 additions and 2 deletions
|
@ -347,7 +347,7 @@ impl Client {
|
|||
}
|
||||
|
||||
/// Disconnect from the server, ending all tasks.
|
||||
pub async fn shutdown(&self) -> Result<(), std::io::Error> {
|
||||
pub async fn disconnect(&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: {}",
|
||||
|
@ -552,7 +552,7 @@ impl Client {
|
|||
}
|
||||
ClientboundGamePacket::Disconnect(p) => {
|
||||
debug!("Got disconnect packet {:?}", p);
|
||||
client.shutdown().await?;
|
||||
client.disconnect().await?;
|
||||
}
|
||||
ClientboundGamePacket::UpdateRecipes(_p) => {
|
||||
debug!("Got update recipes packet");
|
||||
|
|
Loading…
Add table
Reference in a new issue