diff options
| author | Andrew Mahone <andrew.mahone@gmail.com> | 2019-11-04 10:31:32 -0500 |
|---|---|---|
| committer | Andrew Mahone <andrew.mahone@gmail.com> | 2019-11-04 10:31:32 -0500 |
| commit | c2d8f210b1c8daa86a37b530a7da05370d3b209a (patch) | |
| tree | 1800fb317e869269a39ef47a3377575b4a264b92 /Emby.Server.Implementations/Data/SqliteItemRepository.cs | |
| parent | 0dde5e46df13f63158288ce73b98b25a6440de43 (diff) | |
Check for cancellation in SaveMediaAttachments.
Diffstat (limited to 'Emby.Server.Implementations/Data/SqliteItemRepository.cs')
| -rw-r--r-- | Emby.Server.Implementations/Data/SqliteItemRepository.cs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Emby.Server.Implementations/Data/SqliteItemRepository.cs b/Emby.Server.Implementations/Data/SqliteItemRepository.cs index 62837933c..8d39cdb8f 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.Type throw new ArgumentNullException(nameof(attachments)); } + cancellationToken.ThrowIfCancellationRequested(); + using var connection = GetConnection(); connection.RunInTransaction(db => { |
