mirror of
https://github.com/rclone/rclone.git
synced 2025-06-24 02:11:23 +08:00
Make IsRetryError function
This commit is contained in:
@ -238,7 +238,7 @@ tryAgain:
|
||||
inErr = in.Close()
|
||||
}
|
||||
// Retry if err returned a retry error
|
||||
if r, ok := err.(Retry); ok && r.Retry() && tries < maxTries {
|
||||
if IsRetryError(err) && tries < maxTries {
|
||||
tries++
|
||||
Log(src, "Received error: %v - low level retry %d/%d", err, tries, maxTries)
|
||||
if removeFailedCopy(dst) {
|
||||
|
Reference in New Issue
Block a user