mirror of
https://github.com/ppy/osu.git
synced 2025-02-23 12:13:30 +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();
|
attemptConnect();
|
||||||
|
|
||||||
if (state.Value != APIState.Online)
|
if (state.Value != APIState.Online)
|
||||||
|
{
|
||||||
|
Thread.Sleep(50);
|
||||||
continue;
|
continue;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// hard bail if we can't get a valid access token.
|
// hard bail if we can't get a valid access token.
|
||||||
|
Loading…
Reference in New Issue
Block a user