diff options
| -rw-r--r-- | azalea-client/src/client.rs | 7 |
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?; |
