mirror of
https://github.com/wgh136/nysoure.git
synced 2025-09-27 12:17:24 +00:00
Fix downloading file.
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user