Skip to content

Commit 7973137

Browse files
downloader: fix retry logic
1 parent 49d4f60 commit 7973137

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/downloader.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ async fn download_thread(client: Client, mut req: DownloadRequest) {
171171
}
172172

173173
let mut last_error = None;
174-
for attempt in 0..=(MAX_RETRIES) {
174+
for attempt in 0..=(MAX_RETRIES + 1) {
175175
if attempt > MAX_RETRIES {
176176
req.status.send(Status::Failed).ok();
177177
req.result

0 commit comments

Comments
 (0)