From 61de890fda2186eadf3264fb19d2da7b4d91125c Mon Sep 17 00:00:00 2001 From: ByAyzen <189399597+ByAyzen@users.noreply.github.com> Date: Sat, 29 Aug 2026 05:17:05 +0300 Subject: [PATCH] Small bugfix: Cancel and clear downloads. --- .../cloudstream3/utils/downloader/DownloadQueueManager.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/lagradost/cloudstream3/utils/downloader/DownloadQueueManager.kt b/app/src/main/java/com/lagradost/cloudstream3/utils/downloader/DownloadQueueManager.kt index f3866408833..855d65c0016 100644 --- a/app/src/main/java/com/lagradost/cloudstream3/utils/downloader/DownloadQueueManager.kt +++ b/app/src/main/java/com/lagradost/cloudstream3/utils/downloader/DownloadQueueManager.kt @@ -198,8 +198,9 @@ object DownloadQueueManager { } } - /** Removes all queued items */ + /** Removes all queued items and cancels active downloads */ fun removeAllFromQueue() { + downloadInstances.value.forEach { it.cancelDownload() } removeAll().forEach { wrapper -> setQueueStatus(wrapper.id, VideoDownloadManager.DownloadType.IsStopped) }