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:
parent
8299dfc6f2
commit
d6552f00be
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user