From 60176fadc22be7777a0984527a238de7eadf9016 Mon Sep 17 00:00:00 2001 From: Deivid Soto Date: Sun, 29 Mar 2026 20:33:51 +0200 Subject: [PATCH] fix: force-start tasks bypass HasCapacity check in dispatch loop --- internal/cmd/daemon.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/cmd/daemon.go b/internal/cmd/daemon.go index f9a2a88..2c38b11 100644 --- a/internal/cmd/daemon.go +++ b/internal/cmd/daemon.go @@ -272,7 +272,7 @@ func runDaemonStart() error { for _, t := range tasks { if t.Mode == "stream" { go handleStreamTask(ctx, t, reporter, cfg) - } else if manager.HasCapacity() { + } else if t.ForceStart || manager.HasCapacity() { manager.Submit(ctx, t) } else { log.Printf("[%s] skipped: no capacity (max %d)", t.ID[:8], cfg.Download.MaxConcurrent)