pull/10969/head
Patrick Barron 12 months ago
parent 6d8062116c
commit 505c09c85b

@ -435,7 +435,15 @@ namespace MediaBrowser.Controller.Entities
progress.Report(percent); progress.Report(percent);
// TODO: this is sometimes being called after the refresh has completed.
try
{
ProviderManager.OnRefreshProgress(folder, percent); ProviderManager.OnRefreshProgress(folder, percent);
}
catch (InvalidOperationException e)
{
Logger.LogError(e, "Error refreshing folder");
}
}); });
if (validChildrenNeedGeneration) if (validChildrenNeedGeneration)
@ -466,9 +474,17 @@ namespace MediaBrowser.Controller.Entities
progress.Report(percent); progress.Report(percent);
if (recursive) if (recursive)
{
// TODO: this is sometimes being called after the refresh has completed.
try
{ {
ProviderManager.OnRefreshProgress(folder, percent); ProviderManager.OnRefreshProgress(folder, percent);
} }
catch (InvalidOperationException e)
{
Logger.LogError(e, "Error refreshing folder");
}
}
}); });
if (container is not null) if (container is not null)

Loading…
Cancel
Save