The Free Software Media System - Server Backend & API
Merge pull request #12925 from Bond-009/await
Bond-009973489232205
diff --cc Jellyfin.Server/Infrastructure/SymlinkFollowingPhysicalFileResultExecutor.csindex 901ed55be6,999e083845..910b5c4672--- a/Jellyfin.Server/Infrastructure/SymlinkFollowingPhysicalFileResultExecutor.cs+++ b/Jellyfin.Server/Infrastructure/SymlinkFollowingPhysicalFileResultExecutor.cs@@@ -98,10 -100,10 +100,10 @@@ namespace Jellyfin.Server.Infrastructurresult.FileName,response,offset: 0,- count: null);+ count: null).ConfigureAwait(false);}- private async Task SendFileAsync(string filePath, HttpResponse response, long offset, long? count)+ private async Task SendFileAsync(string filePath, HttpResponse response, long offset, long? count, CancellationToken cancellationToken = default){var fileInfo = GetFileInfo(filePath);if (offset < 0 || offset > fileInfo.Length)diff --cc MediaBrowser.Controller/Entities/BaseItem.csindex 9276989b4b,a9caa8453a..e7aa0fad58--- a/MediaBrowser.Controller/Entities/BaseItem.cs+++ b/MediaBrowser.Controller/Entities/BaseItem.cs@@@ -1981,11 -1974,11 +1981,11 @@@ namespace MediaBrowser.Controller.Entitpublic void AddImage(ItemImageInfo image){- ImageInfos = [..ImageInfos, image];+ ImageInfos = [.. ImageInfos, image];}- public virtual Task UpdateToRepositoryAsync(ItemUpdateType updateReason, CancellationToken cancellationToken)- => LibraryManager.UpdateItemAsync(this, GetParent(), updateReason, cancellationToken);+ public virtual async Task UpdateToRepositoryAsync(ItemUpdateType updateReason, CancellationToken cancellationToken)+ => await LibraryManager.UpdateItemAsync(this, GetParent(), updateReason, cancellationToken).ConfigureAwait(false);/// <summary>/// Validates that images within the item are still on the filesystem.