mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 08:20:00 +09:00
Remove interlocked within a lock
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user