mirror of https://github.com/ppy/osu
Ensure that `DummyAPIAccess` runs all queued tasks on disposal
This commit is contained in:
parent
cbdd870ecf
commit
a1e849c4db
|
@ -128,5 +128,13 @@ public RegistrationRequest.RegistrationRequestErrors CreateAccount(string email,
|
|||
IBindable<UserActivity> IAPIProvider.Activity => Activity;
|
||||
|
||||
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…
Reference in New Issue