mirror of
https://github.com/wgh136/nysoure.git
synced 2025-09-27 04:17:23 +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)
|
||||
time.Sleep(2 * time.Second) // Wait before retrying
|
||||
continue
|
||||
} else {
|
||||
log.Info("File downloaded successfully: ", tempPath)
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user