only start downloads that are need to be started

This commit is contained in:
2026-02-20 20:46:02 +03:00
parent 0d18ae0324
commit 51a1c5a77d

View File

@@ -164,6 +164,10 @@ func main() {
} }
for _, download := range downloads { for _, download := range downloads {
if download.Status != DownloadStatusAdded {
continue
}
go func() { go func() {
download.Status = DownloadStatusInProgress download.Status = DownloadStatusInProgress