1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-22 16:28:21 +08:00

Do not attempt to automatically reconnect if there is no login to use

Because it'll fail anyway - there is either no username or no password.
The reason why this is important is that the block was also setting API
state to `Connecting`.
This commit is contained in:
Bartłomiej Dach 2025-02-18 10:14:00 +01:00
parent 8299dfc6f2
commit d6552f00be
No known key found for this signature in database

View File

@ -244,7 +244,7 @@ namespace osu.Game.Online.API
// save the username at this point, if the user requested for it to be.
config.SetValue(OsuSetting.Username, config.Get<bool>(OsuSetting.SaveUsername) ? ProvidedUsername : string.Empty);
if (!authentication.HasValidAccessToken)
if (!authentication.HasValidAccessToken && HasLogin)
{
state.Value = APIState.Connecting;
LastLoginError = null;