diff options
| author | Ubuntu <github@matdoes.dev> | 2022-11-09 17:41:06 +0000 |
|---|---|---|
| committer | Ubuntu <github@matdoes.dev> | 2022-11-09 17:41:06 +0000 |
| commit | 8de73c336fb15aa2108d09dba833c80339ef6671 (patch) | |
| tree | 3b72b34e848d35a6208ac3119de7ebe96ea2a1ba /azalea-client/src/client.rs | |
| parent | 0675e05e2818dd7d92f92bda08a763e4b3e756fb (diff) | |
| download | azalea-drasl-8de73c336fb15aa2108d09dba833c80339ef6671.tar.xz | |
fix warnings
Diffstat (limited to 'azalea-client/src/client.rs')
| -rw-r--r-- | azalea-client/src/client.rs | 4 |
1 files changed, 3 insertions, 1 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 { |
