update sync cancellation

This commit is contained in:
Luke Pulverenti
2016-12-28 03:16:21 -05:00
parent 0fd7e89039
commit 28bbe32d1d
3 changed files with 18 additions and 0 deletions

View File

@@ -1030,6 +1030,18 @@ namespace Emby.Server.Implementations.Sync
{
await CancelJobItem(jobItem.Id).ConfigureAwait(false);
}
var syncJobResult = await GetJobs(new SyncJobQuery
{
ItemId = item,
TargetId = targetId
}).ConfigureAwait(false);
foreach (var job in syncJobResult.Items)
{
await CancelJob(job.Id).ConfigureAwait(false);
}
}
}