mirror of
https://github.com/osukey/osukey.git
synced 2025-05-10 08:07:18 +09:00
Fix API getting stuck in eternal failing state if login request fails
This commit is contained in:
parent
e4ff36a5bc
commit
045ed741b0
@ -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");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user