mirror of
https://github.com/ppy/osu.git
synced 2025-02-13 00:42:55 +08:00
Move async call out of using
to better define the flow of data
This commit is contained in:
parent
3e5de9e5a8
commit
37ef368738
@ -58,8 +58,13 @@ namespace osu.Game.Collections
|
|||||||
|
|
||||||
if (storage.Exists(database_name))
|
if (storage.Exists(database_name))
|
||||||
{
|
{
|
||||||
|
List<BeatmapCollection> beatmapCollections;
|
||||||
|
|
||||||
using (var stream = storage.GetStream(database_name))
|
using (var stream = storage.GetStream(database_name))
|
||||||
importCollections(readCollections(stream));
|
beatmapCollections = readCollections(stream);
|
||||||
|
|
||||||
|
// intentionally fire-and-forget async.
|
||||||
|
importCollections(beatmapCollections);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user