1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-22 22:20:53 +08:00

Add missing IsCompleted check to ensureValid

This commit is contained in:
Dean Herbert
2017-12-06 16:20:49 +09:00
Unverified
parent 15ed3b4aac
commit 04ae64e9fd
+1 -1
View File
@@ -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();
}
}