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:
parent
2731d8e3c2
commit
d9a43b4c4c
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user