1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-12 21:52:56 +08:00

Move async call out of using to better define the flow of data

This commit is contained in:
Dean Herbert 2021-05-27 19:03:59 +09:00
parent 3e5de9e5a8
commit 37ef368738

View File

@ -58,8 +58,13 @@ namespace osu.Game.Collections
if (storage.Exists(database_name))
{
List<BeatmapCollection> beatmapCollections;
using (var stream = storage.GetStream(database_name))
importCollections(readCollections(stream));
beatmapCollections = readCollections(stream);
// intentionally fire-and-forget async.
importCollections(beatmapCollections);
}
}