mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 06:03:08 +08:00
Fix tests potentially loading tracks upon disposal (#4899)
Fix tests potentially loading tracks upon disposal Co-authored-by: Dan Balasescu <1329837+smoogipoo@users.noreply.github.com>
This commit is contained in:
commit
3a187c2d5e
@ -61,7 +61,8 @@ namespace osu.Game.Tests.Visual
|
||||
{
|
||||
base.Dispose(isDisposing);
|
||||
|
||||
beatmap?.Value.Track.Stop();
|
||||
if (beatmap?.Value.TrackLoaded == true)
|
||||
beatmap.Value.Track.Stop();
|
||||
|
||||
if (localStorage.IsValueCreated)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user