mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 11:35:35 +08:00
Fix crossthread operations due to Track.Completed
This commit is contained in:
parent
109abf4d28
commit
30815ace62
@ -28,7 +28,7 @@ namespace osu.Game.Audio
|
||||
private void load()
|
||||
{
|
||||
track = GetTrack();
|
||||
track.Completed += Stop;
|
||||
track.Completed += () => Schedule(Stop);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -351,11 +351,11 @@ namespace osu.Game.Overlays
|
||||
queuedDirection = null;
|
||||
}
|
||||
|
||||
private void currentTrackCompleted()
|
||||
private void currentTrackCompleted() => Schedule(() =>
|
||||
{
|
||||
if (!beatmap.Disabled && beatmapSets.Any())
|
||||
next();
|
||||
}
|
||||
});
|
||||
|
||||
private ScheduledDelegate pendingBeatmapSwitch;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user