mirror of
https://github.com/ppy/osu
synced 2025-01-13 17:41:09 +00:00
Fix potential race incorrectly pausing the source clock
This commit is contained in:
parent
57a38374db
commit
009aa994d0
@ -100,7 +100,13 @@ namespace osu.Game.Screens.Play
|
||||
{
|
||||
// The source is stopped by a frequency fade first.
|
||||
if (isPaused.NewValue)
|
||||
this.TransformBindableTo(pauseFreqAdjust, 0, 200, Easing.Out).OnComplete(_ => AdjustableSource.Stop());
|
||||
{
|
||||
this.TransformBindableTo(pauseFreqAdjust, 0, 200, Easing.Out).OnComplete(_ =>
|
||||
{
|
||||
if (IsPaused.Value == isPaused.NewValue)
|
||||
AdjustableSource.Stop();
|
||||
});
|
||||
}
|
||||
else
|
||||
this.TransformBindableTo(pauseFreqAdjust, 1, 200, Easing.In);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user