mirror of
https://github.com/ppy/osu.git
synced 2025-02-22 16:32:59 +08:00
Add sleep to reduce spinning when waiting on two factor auth
This commit is contained in:
parent
b905a92b20
commit
7566da8663
@ -190,7 +190,10 @@ namespace osu.Game.Online.API
|
||||
attemptConnect();
|
||||
|
||||
if (state.Value != APIState.Online)
|
||||
{
|
||||
Thread.Sleep(50);
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
// hard bail if we can't get a valid access token.
|
||||
|
Loading…
Reference in New Issue
Block a user