mirror of
https://github.com/ppy/osu.git
synced 2025-02-28 05:23:22 +08:00
Lock one more case of usage
This commit is contained in:
parent
060bb1afbd
commit
8a4c0c0ac8
@ -189,11 +189,14 @@ namespace osu.Game.Beatmaps
|
||||
/// </summary>
|
||||
public void CancelAsyncLoad()
|
||||
{
|
||||
loadCancellation?.Cancel();
|
||||
loadCancellation = new CancellationTokenSource();
|
||||
lock (beatmapFetchLock)
|
||||
{
|
||||
loadCancellation?.Cancel();
|
||||
loadCancellation = new CancellationTokenSource();
|
||||
|
||||
if (beatmapLoadTask?.IsCompleted != true)
|
||||
beatmapLoadTask = null;
|
||||
if (beatmapLoadTask?.IsCompleted != true)
|
||||
beatmapLoadTask = null;
|
||||
}
|
||||
}
|
||||
|
||||
private CancellationTokenSource createCancellationTokenSource(TimeSpan? timeout)
|
||||
|
Loading…
Reference in New Issue
Block a user