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

Merge pull request #33904 from smoogipoo/fix-update-lag

Fix lag when checking for update
This commit is contained in:
Dean Herbert
2025-06-27 19:38:03 +09:00
committed by GitHub
Unverified
+2 -2
View File
@@ -88,7 +88,7 @@ namespace osu.Game.Updater
/// Immediately checks for any available update.
/// </summary>
/// <returns><c>true</c> if any updates are available, <c>false</c> otherwise.</returns>
public async Task<bool> CheckForUpdateAsync(CancellationToken cancellationToken = default)
public async Task<bool> CheckForUpdateAsync(CancellationToken cancellationToken = default) => await Task.Run(async () =>
{
if (!CanCheckForUpdate)
return false;
@@ -100,7 +100,7 @@ namespace osu.Game.Updater
await lastCts.CancelAsync().ConfigureAwait(false);
return await PerformUpdateCheck(cts.Token).ConfigureAwait(false);
}
}, cancellationToken).ConfigureAwait(false);
/// <summary>
/// Performs an asynchronous check for application updates.