1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-15 12:42:54 +08:00

Fix API requests not completing when offline

This commit is contained in:
Dan Balasescu 2022-02-03 13:16:54 +09:00
parent 2731d8e3c2
commit d9a43b4c4c

View File

@ -399,7 +399,10 @@ namespace osu.Game.Online.API
lock (queue) lock (queue)
{ {
if (state.Value == APIState.Offline) if (state.Value == APIState.Offline)
{
request.Fail(new WebException("Disconnected from server"));
return; return;
}
queue.Enqueue(request); queue.Enqueue(request);
} }