1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-21 22:07:25 +08:00

Fix OAuth refresh attempt when no network available causing full logout

This commit is contained in:
Dean Herbert 2023-09-24 10:50:07 +09:00
parent 7d7fc09dbc
commit 3c62521e69

View File

@ -99,9 +99,14 @@ namespace osu.Game.Online.API
return true;
}
}
catch (HttpRequestException)
{
// Network failure.
return false;
}
catch
{
//todo: potentially only kill the refresh token on certain exception types.
// Force a full re-reauthentication.
Token.Value = null;
return false;
}