mirror of
https://github.com/ppy/osu.git
synced 2026-05-23 05:39:53 +08:00
Add missing IsCompleted check to ensureValid
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user