Browse Source

Check for cancellation in SaveMediaAttachments.

Andrew Mahone 5 years ago
parent
commit
c2d8f210b1
1 changed files with 2 additions and 0 deletions
  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 =>
             {