fix download exceed max concurrency limit

This commit is contained in:
tickstep 2024-08-09 12:57:46 +08:00
parent 7dfd89c29d
commit c05148df16

View File

@ -347,6 +347,9 @@ func (f *FileActionTask) downloadFile(ctx context.Context) error {
}
logger.Verboseln("query new download url: ", newUrl.Url)
worker.SetUrl(newUrl.Url)
} else if worker.GetStatus().StatusCode() == downloader.StatusCodeDownloadUrlExceedMaxConcurrency {
logger.Verboseln("download url exceed max concurrency: ", f.syncItem.PanFile.Path)
// 下载遇到限流了,下一次重试
}
}
}