Remove interlocked within a lock

This commit is contained in:
smoogipoo 2019-06-12 17:10:55 +09:00
parent fd7dc9504e
commit 2a67944889

View File

@ -161,8 +161,8 @@ namespace osu.Game.Database
lock (imported)
{
imported.Add(model);
current++;
Interlocked.Increment(ref current);
notification.Text = $"Imported {current} of {paths.Length} {humanisedModelName}s";
notification.Progress = (float)current / paths.Length;
}