From 4760488c4a27678b3cec6cf7f4be0966a140e47a Mon Sep 17 00:00:00 2001 From: mat Date: Thu, 5 Jan 2023 18:36:44 -0600 Subject: fix --- azalea-client/src/client.rs | 7 +++++-- 1 file 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?; -- cgit v1.2.3