mirror of
https://github.com/osukey/osukey.git
synced 2025-08-06 16:13:57 +09: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:
@ -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)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user