Skip to content

Commit 7f55cc5

Browse files
committed
Fix looping sample implementation
1 parent c97277e commit 7f55cc5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

osu.Game/Screens/Edit/Submission/SubmissionStageProgress.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,8 @@ protected override void LoadComplete()
149149
progress.BindValueChanged(_ => Scheduler.AddOnce(updateProgress), true);
150150

151151
progressSampleChannel = progressSample?.GetChannel();
152+
if (progressSampleChannel != null)
153+
progressSampleChannel.ManualFree = true;
152154
}
153155

154156
public void SetNotStarted() => status.Value = StageStatusType.NotStarted;
@@ -181,6 +183,7 @@ protected override void Dispose(bool isDisposing)
181183
base.Dispose(isDisposing);
182184

183185
progressSampleChannel?.Stop();
186+
progressSampleChannel?.Dispose();
184187
}
185188

186189
private const float transition_duration = 200;

0 commit comments

Comments
 (0)