1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-07 17:52:54 +08:00

Merge pull request #8101 from smoogipoo/fix-possible-deadlock

Fix potential deadlock during gameplay tests
This commit is contained in:
Dean Herbert 2020-03-03 14:19:20 +09:00 committed by GitHub
commit 655b1a9e9d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -123,6 +123,10 @@ namespace osu.Game.Screens.Play
public void Restart()
{
// The Reset() call below causes speed adjustments to be reset in an async context, leading to deadlocks.
// The deadlock can be prevented by resetting the track synchronously before entering the async context.
track.ResetSpeedAdjustments();
Task.Run(() =>
{
track.Reset();