Fix downloading file.

This commit is contained in:
2025-05-26 22:14:38 +08:00
parent 6a1bcad651
commit 2daa30d480

View File

@@ -569,6 +569,9 @@ func CreateServerDownloadTask(uid uint, url, filename, description string, resou
log.Info("Retrying download... Attempt: ", i+1) log.Info("Retrying download... Attempt: ", i+1)
time.Sleep(2 * time.Second) // Wait before retrying time.Sleep(2 * time.Second) // Wait before retrying
continue continue
} else {
log.Info("File downloaded successfully: ", tempPath)
break
} }
} }