From 5f8baf874dd6907d612fdde8b7d6485d24678e93 Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Thu, 13 Apr 2017 18:31:23 +0900 Subject: [PATCH] Use interpolatedSourceClock's IsRunning value for consistency. --- osu.Game/Screens/Play/Player.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/osu.Game/Screens/Play/Player.cs b/osu.Game/Screens/Play/Player.cs index 1bab7cddde..7f43ae2ac3 100644 --- a/osu.Game/Screens/Play/Player.cs +++ b/osu.Game/Screens/Play/Player.cs @@ -35,7 +35,7 @@ namespace osu.Game.Screens.Play public BeatmapInfo BeatmapInfo; - public bool IsPaused => !sourceClock.IsRunning; + public bool IsPaused => !interpolatedSourceClock.IsRunning; public bool HasFailed { get; private set; } @@ -206,12 +206,12 @@ namespace osu.Game.Screens.Play { if (!canPause && !force) return; - sourceClock.Stop(); - // the actual pausing is potentially happening on a different thread. // we want to wait for the source clock to stop so we can be sure all components are in a stable state. if (!IsPaused) { + sourceClock.Stop(); + Schedule(() => Pause(force)); return; }