mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
removed extra lock
This commit is contained in:
parent
5422b14533
commit
67df3be368
@ -765,8 +765,6 @@ namespace MediaBrowser.Controller.Entities
|
|||||||
var innerProgress = new ActionableProgress<double>();
|
var innerProgress = new ActionableProgress<double>();
|
||||||
|
|
||||||
innerProgress.RegisterAction(p =>
|
innerProgress.RegisterAction(p =>
|
||||||
{
|
|
||||||
lock (progress)
|
|
||||||
{
|
{
|
||||||
percentages.TryUpdate(child.Id, p / 100, percentages[child.Id]);
|
percentages.TryUpdate(child.Id, p / 100, percentages[child.Id]);
|
||||||
|
|
||||||
@ -774,7 +772,6 @@ namespace MediaBrowser.Controller.Entities
|
|||||||
percent /= list.Count;
|
percent /= list.Count;
|
||||||
|
|
||||||
progress.Report((90 * percent) + 10);
|
progress.Report((90 * percent) + 10);
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
await ((Folder)child).ValidateChildren(innerProgress, cancellationToken, recursive: recursive).ConfigureAwait(false);
|
await ((Folder)child).ValidateChildren(innerProgress, cancellationToken, recursive: recursive).ConfigureAwait(false);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user