mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-23 09:14:45 +03:00
improved startup delay
This commit is contained in:
@@ -1407,19 +1407,7 @@ namespace MediaBrowser.Server.Implementations.Library
|
||||
/// <returns>BaseItem.</returns>
|
||||
public BaseItem RetrieveItem(Guid id)
|
||||
{
|
||||
var item = ItemRepository.RetrieveItem(id);
|
||||
|
||||
if (item != null && item.IsFolder)
|
||||
{
|
||||
LoadSavedChildren(item as Folder);
|
||||
}
|
||||
|
||||
return item;
|
||||
}
|
||||
|
||||
private void LoadSavedChildren(Folder item)
|
||||
{
|
||||
item.LoadSavedChildren();
|
||||
return ItemRepository.RetrieveItem(id);
|
||||
}
|
||||
|
||||
private readonly ConcurrentDictionary<string, SemaphoreSlim> _fileLocks = new ConcurrentDictionary<string, SemaphoreSlim>();
|
||||
|
||||
Reference in New Issue
Block a user