From 3be57b90dba4d1a509cfee601f76d936a0f75bb9 Mon Sep 17 00:00:00 2001 From: Dan Balasescu Date: Fri, 13 Jun 2025 22:51:25 +0900 Subject: [PATCH] Dispose the last CTS --- osu.Game/Updater/UpdateManager.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/osu.Game/Updater/UpdateManager.cs b/osu.Game/Updater/UpdateManager.cs index ef53148f67..d48d92bdae 100644 --- a/osu.Game/Updater/UpdateManager.cs +++ b/osu.Game/Updater/UpdateManager.cs @@ -105,6 +105,14 @@ namespace osu.Game.Updater /// Whether any update is waiting. May return true if an error occured (there is potentially an update available). protected virtual Task 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;