aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations/Library/Validators/GameGenresValidator.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2015-08-22 13:50:37 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2015-08-22 13:50:37 -0400
commitfafa879eef6c1fd7590bab78f842cf997251f5ab (patch)
tree229f296354fe3ece249097e6f4a556474182e5ad /MediaBrowser.Server.Implementations/Library/Validators/GameGenresValidator.cs
parent03e6cfde601fb92a5d6a6e50028a02a9d9bb66c8 (diff)
keep channels db clean
Diffstat (limited to 'MediaBrowser.Server.Implementations/Library/Validators/GameGenresValidator.cs')
-rw-r--r--MediaBrowser.Server.Implementations/Library/Validators/GameGenresValidator.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/MediaBrowser.Server.Implementations/Library/Validators/GameGenresValidator.cs b/MediaBrowser.Server.Implementations/Library/Validators/GameGenresValidator.cs
index ee06fecdf..b57e128d3 100644
--- a/MediaBrowser.Server.Implementations/Library/Validators/GameGenresValidator.cs
+++ b/MediaBrowser.Server.Implementations/Library/Validators/GameGenresValidator.cs
@@ -84,6 +84,8 @@ namespace MediaBrowser.Server.Implementations.Library.Validators
foreach (var id in invalidIds)
{
+ cancellationToken.ThrowIfCancellationRequested();
+
var item = _libraryManager.GetItemById(id);
await _libraryManager.DeleteItem(item, new DeleteOptions