1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-24 04:09:53 +08:00

Don't check for updates in DEBUG

This commit is contained in:
Dan Balasescu
2025-06-13 22:54:34 +09:00
Unverified
parent 3be57b90db
commit 5ef3b372ae
+3
View File
@@ -87,6 +87,9 @@ namespace osu.Game.Updater
/// <returns><c>true</c> if any updates are available, <c>false</c> otherwise.</returns>
public async Task<bool> CheckForUpdateAsync(CancellationToken cancellationToken = default)
{
if (!CanCheckForUpdate)
return false;
var cancellation = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
var lastCancellation = Interlocked.Exchange(ref updateCancellation, cancellation);