1
0
mirror of https://github.com/ppy/osu.git synced 2026-06-07 20:44:47 +08:00

Merge pull request #24897 from peppy/fix-oauth-refresh-no-connection

Fix OAuth refresh attempt when no network available causing full logout
This commit is contained in:
Dan Balasescu
2023-09-24 14:06:04 +09:00
committed by GitHub
Unverified
+6 -1
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;
}