fix: use _is_stopped flag for queue start check
_active_download tracks single download; queue uses _is_stopped. Wrong flag caused false 'already active' errors when queue idle.
This commit is contained in:
@@ -828,8 +828,8 @@ class DownloadService:
|
|||||||
# Initialize queue progress tracking if not already done
|
# Initialize queue progress tracking if not already done
|
||||||
await self._init_queue_progress()
|
await self._init_queue_progress()
|
||||||
|
|
||||||
# Check if download already active
|
# Check if queue is already running
|
||||||
if self._active_download:
|
if not self._is_stopped:
|
||||||
raise DownloadServiceError(
|
raise DownloadServiceError(
|
||||||
"Queue processing is already active"
|
"Queue processing is already active"
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user