diff options
Diffstat (limited to 'azalea-protocol/src')
| -rw-r--r-- | azalea-protocol/src/connect.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/azalea-protocol/src/connect.rs b/azalea-protocol/src/connect.rs index 83fbcb63..f67d0e4a 100644 --- a/azalea-protocol/src/connect.rs +++ b/azalea-protocol/src/connect.rs @@ -11,7 +11,7 @@ use crate::write::write_packet; use azalea_auth::sessionserver::SessionServerError; use azalea_crypto::{Aes128CfbDec, Aes128CfbEnc}; use bytes::BytesMut; -use log::info; +use log::{info, error}; use std::fmt::Debug; use std::marker::PhantomData; use std::net::SocketAddr; @@ -143,7 +143,9 @@ where // detect broken pipe if e.kind() == std::io::ErrorKind::BrokenPipe { info!("Broken pipe, shutting down connection."); - self.shutdown(); + if let Err(e) = self.shutdown().await { + error!("Couldn't shut down: {}", e); + } } return Err(e); } |
