mirror of
https://github.com/ppy/osu
synced 2024-12-14 10:57:41 +00:00
Remove interlocked within a lock
This commit is contained in:
parent
fd7dc9504e
commit
2a67944889
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user