1
0
mirror of https://github.com/ppy/osu.git synced 2026-06-03 17:23:57 +08:00

Dispose the last CTS

This commit is contained in:
Dan Balasescu
2025-06-13 22:51:25 +09:00
Unverified
parent 4f5c9f9713
commit 3be57b90db
+8
View File
@@ -105,6 +105,14 @@ namespace osu.Game.Updater
/// <returns>Whether any update is waiting. May return true if an error occured (there is potentially an update available).</returns>
protected virtual Task<bool> PerformUpdateCheck(CancellationToken cancellationToken) => Task.FromResult(false);
protected override void Dispose(bool isDisposing)
{
base.Dispose(isDisposing);
updateCancellation.Cancel();
updateCancellation.Dispose();
}
private partial class UpdateCompleteNotification : SimpleNotification
{
private readonly string version;