1
2
Fork 0
mirror of https://github.com/mat-1/azalea.git synced 2025-08-02 06:16:04 +00:00
This commit is contained in:
mat 2023-01-05 18:36:44 -06:00
parent 82fad00240
commit 4760488c4a

View file

@ -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?;