mirror of
https://github.com/ppy/osu
synced 2024-12-15 03:16:17 +00:00
Avoid crashes on attempting to import the same path twice in quick succession
This commit is contained in:
parent
5761eb30a0
commit
f00140f0a4
@ -144,7 +144,11 @@ namespace osu.Game.Database
|
||||
public void Import(params string[] paths)
|
||||
{
|
||||
foreach (string p in paths)
|
||||
Import(p);
|
||||
{
|
||||
//In case the file was imported twice and deleted after the first time
|
||||
if (File.Exists(p))
|
||||
Import(p);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
Loading…
Reference in New Issue
Block a user