mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-07 18:24:19 -04:00
Remove throttle in refresh code
This commit is contained in:
parent
cc59abd54e
commit
3d0a42da9e
@ -1074,17 +1074,16 @@ 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
|
|
||||||
? RefreshArtist(artist, refreshItem.Item2, cancellationToken)
|
|
||||||
: RefreshItem(item, refreshItem.Item2, cancellationToken);
|
|
||||||
|
|
||||||
await task.ConfigureAwait(false);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var task = item is MusicArtist artist
|
||||||
|
? RefreshArtist(artist, refreshItem.Item2, cancellationToken)
|
||||||
|
: RefreshItem(item, refreshItem.Item2, cancellationToken);
|
||||||
|
|
||||||
|
await task.ConfigureAwait(false);
|
||||||
}
|
}
|
||||||
catch (OperationCanceledException)
|
catch (OperationCanceledException)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user