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