mirror of
https://github.com/ppy/osu
synced 2024-12-14 10:57:41 +00:00
Inline cancellation token source creation
This commit is contained in:
parent
6f5d4ce2e2
commit
43a1df6e5c
@ -121,7 +121,6 @@ namespace osu.Game.Screens.Play
|
||||
}
|
||||
|
||||
cts?.Cancel();
|
||||
cts = new CancellationTokenSource();
|
||||
|
||||
LoadComponentAsync(newColumns, c =>
|
||||
{
|
||||
@ -131,7 +130,7 @@ namespace osu.Game.Screens.Play
|
||||
recalculateValues();
|
||||
redrawFilled();
|
||||
redrawProgress();
|
||||
}, cts.Token);
|
||||
}, (cts = new CancellationTokenSource()).Token);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
Loading…
Reference in New Issue
Block a user