mirror of
https://github.com/osukey/osukey.git
synced 2025-05-18 20:17:23 +09:00
Fix TestCase failing in an infinite loop
This commit is contained in:
parent
35ce6fd2bd
commit
f9d5eadd05
@ -66,12 +66,10 @@ namespace osu.Game.Tests.Visual
|
||||
|
||||
progressingNotifications.RemoveAll(n => n.State == ProgressNotificationState.Completed);
|
||||
|
||||
while (progressingNotifications.Count(n => n.State == ProgressNotificationState.Active) < 3)
|
||||
if (progressingNotifications.Count(n => n.State == ProgressNotificationState.Active) < 3)
|
||||
{
|
||||
var p = progressingNotifications.FirstOrDefault(n => n.IsAlive && n.State == ProgressNotificationState.Queued);
|
||||
if (p == null)
|
||||
break;
|
||||
|
||||
if (p != null)
|
||||
p.State = ProgressNotificationState.Active;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user