aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2023-01-05 18:36:44 -0600
committermat <github@matdoes.dev>2023-01-05 18:36:44 -0600
commit4760488c4a27678b3cec6cf7f4be0966a140e47a (patch)
tree56adc65e06506c349975a5dc30b405016353db7e
parent82fad002404d109ab3de3a004c424e6ba828814c (diff)
downloadazalea-drasl-4760488c4a27678b3cec6cf7f4be0966a140e47a.tar.xz
fix
-rw-r--r--azalea-client/src/client.rs7
1 files changed, 5 insertions, 2 deletions
diff --git a/azalea-client/src/client.rs b/azalea-client/src/client.rs
index f5e72839..4282df46 100644
--- a/azalea-client/src/client.rs
+++ b/azalea-client/src/client.rs
@@ -310,8 +310,11 @@ impl Client {
// both times, give up
return Err(e.into());
}
- if matches!(e, SessionServerError::InvalidSession | ForbiddenOperation)
- {
+ if matches!(
+ e,
+ SessionServerError::InvalidSession
+ | SessionServerError::ForbiddenOperation
+ ) {
// uh oh, we got an invalid session and have
// to reauthenticate now
account.refresh().await?;