From 8de73c336fb15aa2108d09dba833c80339ef6671 Mon Sep 17 00:00:00 2001 From: Ubuntu Date: Wed, 9 Nov 2022 17:41:06 +0000 Subject: fix warnings --- azalea-client/src/client.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'azalea-client/src') 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 { -- cgit v1.2.3