1
2
Fork 0
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:
mat 2022-11-22 14:58:41 -06:00
parent b6b99e61f0
commit 5334f1ab74

View file

@ -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");