1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-05 17:33:15 +08:00

Fix test cases potentially getting stuck after 4th run

This commit is contained in:
David Zhao 2019-03-27 14:31:07 +09:00
parent 43c6a8d2e5
commit 4b1e564df2

View File

@ -163,10 +163,10 @@ namespace osu.Game.Tests.Visual
public bool Ready; public bool Ready;
[BackgroundDependencyLoader] [BackgroundDependencyLoader]
private void load() private void load(CancellationToken token)
{ {
// Never finish loading // Never finish loading
while (!Ready) while (!Ready && !token.IsCancellationRequested)
Thread.Sleep(1); Thread.Sleep(1);
} }
} }