1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 09:27:29 +08:00

Use OnComplete instead of Finally to avoid potentially stopping on aborted transforms

This commit is contained in:
Dean Herbert 2021-01-15 17:18:15 +09:00
parent 311f8b7017
commit 14b3323682

View File

@ -135,7 +135,7 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables
}
else
{
spinningSample?.VolumeTo(0, 300).Finally(_ => spinningSample.Stop());
spinningSample?.VolumeTo(0, 300).OnComplete(_ => spinningSample.Stop());
}
}