Merge pull request #5807 from Bond-009/refreshdelay
Remove throttle in refresh code
This commit is contained in:
commit
da78a96312
|
@ -1073,10 +1073,10 @@ namespace MediaBrowser.Providers.Manager
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
var item = libraryManager.GetItemById(refreshItem.Item1);
|
var item = libraryManager.GetItemById(refreshItem.Item1);
|
||||||
if (item != null)
|
if (item == null)
|
||||||
{
|
{
|
||||||
// Try to throttle this a little bit.
|
continue;
|
||||||
await Task.Delay(100, cancellationToken).ConfigureAwait(false);
|
}
|
||||||
|
|
||||||
var task = item is MusicArtist artist
|
var task = item is MusicArtist artist
|
||||||
? RefreshArtist(artist, refreshItem.Item2, cancellationToken)
|
? RefreshArtist(artist, refreshItem.Item2, cancellationToken)
|
||||||
|
@ -1084,7 +1084,6 @@ namespace MediaBrowser.Providers.Manager
|
||||||
|
|
||||||
await task.ConfigureAwait(false);
|
await task.ConfigureAwait(false);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
catch (OperationCanceledException)
|
catch (OperationCanceledException)
|
||||||
{
|
{
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user