mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-22 16:54:46 +03:00
update sync cancellation
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user