diff options
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?; |
