From a7d52eee83236f3e847e9e0d965a3a04556d4bf4 Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Fri, 18 Jul 2025 15:08:08 +0900 Subject: [PATCH] Fix return type to avoid incorrect "on latest version" prompt --- osu.Game/Updater/UpdateManager.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/osu.Game/Updater/UpdateManager.cs b/osu.Game/Updater/UpdateManager.cs index 8917f07a50..c74adc7ee2 100644 --- a/osu.Game/Updater/UpdateManager.cs +++ b/osu.Game/Updater/UpdateManager.cs @@ -101,7 +101,10 @@ namespace osu.Game.Updater /// /// Immediately checks for any available update. /// - /// true if any updates are available, false otherwise. + /// + /// true if any updates are available, false otherwise. + /// May return true if an error occured (there is potentially an update available). + /// public async Task CheckForUpdateAsync(CancellationToken cancellationToken = default) => await Task.Run(async () => { if (!CanCheckForUpdate) @@ -120,7 +123,7 @@ namespace osu.Game.Updater catch (Exception e) { Logger.Log($"{nameof(PerformUpdateCheck)} failed ({e.Message})"); - return false; + return true; } }, cancellationToken).ConfigureAwait(false);