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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user