1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-14 03:25:11 +08:00

Merge pull request #4023 from peppy/fix-eternal-failing

Fix API getting stuck in eternal failing state if login request fails
This commit is contained in:
Dan Balasescu 2019-01-10 14:01:40 +09:00 committed by GitHub
commit e98ef4e164
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -101,6 +101,9 @@ namespace osu.Game.Online.API
//todo: replace this with a ping request. //todo: replace this with a ping request.
log.Add(@"In a failing state, waiting a bit before we try again..."); log.Add(@"In a failing state, waiting a bit before we try again...");
Thread.Sleep(5000); Thread.Sleep(5000);
if (!IsLoggedIn) goto case APIState.Connecting;
if (queue.Count == 0) if (queue.Count == 0)
{ {
log.Add(@"Queueing a ping request"); log.Add(@"Queueing a ping request");