Explorar o código

Check for cancellation in SaveMediaAttachments.

Andrew Mahone %!s(int64=5) %!d(string=hai) anos
pai
achega
c2d8f210b1
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      Emby.Server.Implementations/Data/SqliteItemRepository.cs

+ 2 - 0
Emby.Server.Implementations/Data/SqliteItemRepository.cs

@@ -6201,6 +6201,8 @@ where AncestorIdText not null and ItemValues.Value not null and ItemValues.Type
                 throw new ArgumentNullException(nameof(attachments));
             }
 
+            cancellationToken.ThrowIfCancellationRequested();
+
             using var connection = GetConnection();
             connection.RunInTransaction(db =>
             {