mirror of
https://github.com/osukey/osukey.git
synced 2025-08-05 23:53:51 +09:00
Cleanup test scene disposal
This commit is contained in:
@ -3,6 +3,7 @@
|
|||||||
|
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
using System.Diagnostics;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
@ -169,7 +170,10 @@ namespace osu.Game.Tests.Visual
|
|||||||
rulesetDependencies?.Dispose();
|
rulesetDependencies?.Dispose();
|
||||||
|
|
||||||
if (MusicController?.TrackLoaded == true)
|
if (MusicController?.TrackLoaded == true)
|
||||||
MusicController.Stop();
|
{
|
||||||
|
Debug.Assert(MusicController.CurrentTrack != null);
|
||||||
|
MusicController.CurrentTrack.Stop();
|
||||||
|
}
|
||||||
|
|
||||||
if (contextFactory.IsValueCreated)
|
if (contextFactory.IsValueCreated)
|
||||||
contextFactory.Value.ResetDatabase();
|
contextFactory.Value.ResetDatabase();
|
||||||
|
Reference in New Issue
Block a user