mirror of
https://github.com/osukey/osukey.git
synced 2025-06-09 21:37:59 +09:00
Ensure that DummyAPIAccess
runs all queued tasks on disposal
This commit is contained in:
parent
cbdd870ecf
commit
a1e849c4db
@ -128,5 +128,13 @@ namespace osu.Game.Online.API
|
|||||||
IBindable<UserActivity> IAPIProvider.Activity => Activity;
|
IBindable<UserActivity> IAPIProvider.Activity => Activity;
|
||||||
|
|
||||||
public void FailNextLogin() => shouldFailNextLogin = true;
|
public void FailNextLogin() => shouldFailNextLogin = true;
|
||||||
|
|
||||||
|
protected override void Dispose(bool isDisposing)
|
||||||
|
{
|
||||||
|
base.Dispose(isDisposing);
|
||||||
|
|
||||||
|
// Ensure (as much as we can) that any pending tasks are run.
|
||||||
|
Scheduler.Update();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user