mirror of
https://github.com/ppy/osu.git
synced 2025-03-28 05:07:28 +08:00
Add comment + fix spinlocking
This commit is contained in:
parent
4dc77d64a3
commit
57d648df6d
@ -43,6 +43,7 @@ namespace osu.Game.Overlays.Changelog
|
|||||||
};
|
};
|
||||||
req.Failure += _ => complete = true;
|
req.Failure += _ => complete = true;
|
||||||
|
|
||||||
|
// This is done on a separate thread to support cancellation below
|
||||||
Task.Run(() => req.Perform(api));
|
Task.Run(() => req.Perform(api));
|
||||||
|
|
||||||
while (!complete)
|
while (!complete)
|
||||||
@ -53,7 +54,7 @@ namespace osu.Game.Overlays.Changelog
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
Task.Delay(1);
|
Thread.Sleep(10);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (build != null)
|
if (build != null)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user