1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-19 04:32:11 +08:00

Cleanup test scene disposal

This commit is contained in:
smoogipoo
2020-08-06 17:15:33 +09:00
Unverified
parent e8ab3cff3c
commit c72ab9047e
+5 -1
View File
@@ -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();