mirror of
https://github.com/ppy/osu
synced 2025-03-23 11:27:24 +00: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);
|
base.Dispose(isDisposing);
|
||||||
|
|
||||||
beatmap?.Value.Track.Stop();
|
if (beatmap?.Value.TrackLoaded == true)
|
||||||
|
beatmap.Value.Track.Stop();
|
||||||
|
|
||||||
if (localStorage.IsValueCreated)
|
if (localStorage.IsValueCreated)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user