The Free Software Media System - Server Backend & API
Check for cancellation in SaveMediaAttachments.
Andrew Mahonec2d8f210b1c8
diff --git a/Emby.Server.Implementations/Data/SqliteItemRepository.cs b/Emby.Server.Implementations/Data/SqliteItemRepository.csindex 62837933c0..8d39cdb8f4 100644--- a/Emby.Server.Implementations/Data/SqliteItemRepository.cs+++ b/Emby.Server.Implementations/Data/SqliteItemRepository.cs@@ -6201,6 +6201,8 @@ where AncestorIdText not null and ItemValues.Value not null and ItemValues.Typethrow new ArgumentNullException(nameof(attachments));}+ cancellationToken.ThrowIfCancellationRequested();+using var connection = GetConnection();connection.RunInTransaction(db =>{