aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--azalea-client/src/client.rs4
-rw-r--r--bot/src/main.rs2
2 files changed, 3 insertions, 3 deletions
diff --git a/azalea-client/src/client.rs b/azalea-client/src/client.rs
index 311fb165..ac340ede 100644
--- a/azalea-client/src/client.rs
+++ b/azalea-client/src/client.rs
@@ -311,7 +311,9 @@ impl Client {
Err(e) => {
if let ReadPacketError::ConnectionClosed = e {
info!("Connection closed");
- client.shutdown().await;
+ if let Err(e) = client.shutdown().await {
+ error!("Error shutting down connection: {:?}", e);
+ }
return;
}
if IGNORE_ERRORS {
diff --git a/bot/src/main.rs b/bot/src/main.rs
index 6e66d2ee..3ab90bfd 100644
--- a/bot/src/main.rs
+++ b/bot/src/main.rs
@@ -22,8 +22,6 @@ async fn main() -> anyhow::Result<()> {
.await;
println!("{:?}", e);
}
-
- Ok(())
}
async fn handle(bot: Client, event: Event, _state: State) -> anyhow::Result<()> {