mirror of
https://github.com/ppy/osu
synced 2025-01-18 12:00:58 +00:00
Ensure Queue
operations on DummyAPIAccess
are performed on the update thread
This commit is contained in:
parent
a2a057440e
commit
c18dd8c8fb
@ -63,10 +63,13 @@ namespace osu.Game.Online.API
|
||||
|
||||
public virtual void Queue(APIRequest request)
|
||||
{
|
||||
if (HandleRequest?.Invoke(request) != true)
|
||||
Schedule(() =>
|
||||
{
|
||||
request.Fail(new InvalidOperationException($@"{nameof(DummyAPIAccess)} cannot process this request."));
|
||||
}
|
||||
if (HandleRequest?.Invoke(request) != true)
|
||||
{
|
||||
request.Fail(new InvalidOperationException($@"{nameof(DummyAPIAccess)} cannot process this request."));
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public void Perform(APIRequest request) => HandleRequest?.Invoke(request);
|
||||
|
Loading…
Reference in New Issue
Block a user