mirror of
https://github.com/ppy/osu.git
synced 2024-11-06 06:57:39 +08:00
Add missing IsCompleted check to ensureValid
This commit is contained in:
parent
15ed3b4aac
commit
04ae64e9fd
@ -161,7 +161,7 @@ namespace osu.Game.Beatmaps
|
||||
{
|
||||
lock (initLock)
|
||||
{
|
||||
if (!lazy.IsValueCreated || (stillValidFunction?.Invoke(lazy.Value.Result) ?? true)) return;
|
||||
if (!lazy.IsValueCreated || !lazy.Value.IsCompleted || (stillValidFunction?.Invoke(lazy.Value.Result) ?? true)) return;
|
||||
init();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user