Remove throttle in refresh code

pull/5807/head
Bond_009 4 years ago
parent cc59abd54e
commit 3d0a42da9e

@ -1074,10 +1074,10 @@ namespace MediaBrowser.Providers.Manager
try
{
var item = libraryManager.GetItemById(refreshItem.Item1);
if (item != null)
if (item == null)
{
// Try to throttle this a little bit.
await Task.Delay(100, cancellationToken).ConfigureAwait(false);
continue;
}
var task = item is MusicArtist artist
? RefreshArtist(artist, refreshItem.Item2, cancellationToken)
@ -1085,7 +1085,6 @@ namespace MediaBrowser.Providers.Manager
await task.ConfigureAwait(false);
}
}
catch (OperationCanceledException)
{
break;

Loading…
Cancel
Save