mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 22:56:36 +09:00
Fix test cases potentially getting stuck after 4th run
This commit is contained in:
@ -163,10 +163,10 @@ namespace osu.Game.Tests.Visual
|
||||
public bool Ready;
|
||||
|
||||
[BackgroundDependencyLoader]
|
||||
private void load()
|
||||
private void load(CancellationToken token)
|
||||
{
|
||||
// Never finish loading
|
||||
while (!Ready)
|
||||
while (!Ready && !token.IsCancellationRequested)
|
||||
Thread.Sleep(1);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user