mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 16:29:58 +09:00
Remove interlocked within a lock
This commit is contained in:
@ -161,8 +161,8 @@ namespace osu.Game.Database
|
|||||||
lock (imported)
|
lock (imported)
|
||||||
{
|
{
|
||||||
imported.Add(model);
|
imported.Add(model);
|
||||||
|
current++;
|
||||||
|
|
||||||
Interlocked.Increment(ref current);
|
|
||||||
notification.Text = $"Imported {current} of {paths.Length} {humanisedModelName}s";
|
notification.Text = $"Imported {current} of {paths.Length} {humanisedModelName}s";
|
||||||
notification.Progress = (float)current / paths.Length;
|
notification.Progress = (float)current / paths.Length;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user