mirror of
https://github.com/mat-1/azalea.git
synced 2025-08-02 06:16:04 +00:00
fix
This commit is contained in:
parent
82fad00240
commit
4760488c4a
1 changed files with 5 additions and 2 deletions
|
@ -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?;
|
||||
|
|
Loading…
Add table
Reference in a new issue