added torrent pausing back

This commit is contained in:
Flaminel
2025-10-04 21:48:53 +03:00
parent 3916843cee
commit f8f438d3e7
2 changed files with 11 additions and 1 deletions

View File

@@ -206,7 +206,12 @@ public sealed class MalwareBlocker : GenericHandler
{
removeFromClient = false;
}
if (downloadService is DelugeService delugeService)
{
await delugeService.PauseAsync(record.DownloadId);
}
await PublishQueueItemRemoveRequest(
downloadRemovalKey,
instanceType,

View File

@@ -186,6 +186,11 @@ public sealed class QueueCleaner : GenericHandler
}
}
if (downloadService is DelugeService delugeService)
{
await delugeService.PauseAsync(record.DownloadId);
}
await PublishQueueItemRemoveRequest(
downloadRemovalKey,
instanceType,