diff options
| author | mat <github@matdoes.dev> | 2023-01-05 18:28:35 -0600 |
|---|---|---|
| committer | mat <github@matdoes.dev> | 2023-01-05 18:28:35 -0600 |
| commit | 82fad002404d109ab3de3a004c424e6ba828814c (patch) | |
| tree | 893a2493d7519190ef9aac4d1472156c518f1c6a /azalea-client/src | |
| parent | fc88dabd954e09450bf7f155f36829f5678b6171 (diff) | |
| download | azalea-drasl-82fad002404d109ab3de3a004c424e6ba828814c.tar.xz | |
fix auto reauthentication
THANKS MOJANG
Diffstat (limited to 'azalea-client/src')
| -rw-r--r-- | azalea-client/src/client.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/azalea-client/src/client.rs b/azalea-client/src/client.rs index c88cfc31..f5e72839 100644 --- a/azalea-client/src/client.rs +++ b/azalea-client/src/client.rs @@ -310,7 +310,8 @@ impl Client { // both times, give up return Err(e.into()); } - if let SessionServerError::InvalidSession = e { + if matches!(e, SessionServerError::InvalidSession | ForbiddenOperation) + { // uh oh, we got an invalid session and have // to reauthenticate now account.refresh().await?; |
