mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 06:33:20 +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)
|
||||
{
|
||||
if (state.Value == APIState.Offline)
|
||||
{
|
||||
request.Fail(new WebException("Disconnected from server"));
|
||||
return;
|
||||
}
|
||||
|
||||
queue.Enqueue(request);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user